Just a quick one, 

are you sure about the very first line ?
where are you creating the movieclip ?

maybe it should be 

this.createEmptyMovieClip(...
or
someOther_mc.this.createEmptyMovieClip(...




glenn





//create a container called "c"
c = c.createEmptyMovieClip("c", 1);
/*
//////////////////////////////////////////////////////////////////////// 
///////////////////////////
//the developer created sctnTxt arrray
//////////////////////////////////////////////////////////////////////// 
///////////////////////////
*/
var sctnTxt_array:Array = new Array("news", "philosophy", "about us",  
"excursions", "rentals", "locations", "gallery", "links", "contact");
//trace(sctnTxt_array);
//////////////////////////////////////////////////////////////////////// 
///////////////////////////
//////////////////////////////////////////////////////////////////////// 
///////////////////////////
//////////////////////////////////////////////////////////////////////// 
///////////////////////////
/*
//within c create a new array called "sctnNm_array" of  
(sctnTxt_array.length) number of empty movie clips
*/
function populate() {
for (i=0; i<sctnTxt_array.length; i++) {
var sctnNm_array:Array = new Array();
sctnNm_array[i] = c.createEmptyMovieClip("sctnNm"+i, i);
/*
//populate each movie clip with an empty text field
*/
for (j=0; j<sctnTxt_array.length; j++) {
sctnNm_array[i][j] = c.createTextField("sctnNmTxt"+j, j, 10, j*20,  
100, 30);
sctnNm_array[i][j].autoSize = true;
sctnNm_array[i][j].border = true;
/*
//////////////////////////////////////////////////////////////////////// 
////////////////////////////////////
//////////populate the textfields with developer designated text
//////////////////////////////////////////////////////////////////////// 
///////////////////////////////////
*/
for (k=0; k<sctnTxt_array.length;k++){
sctnNm_array[i][j].text = sctnTxt_array[k];
}
}
}
}
/*
//////////////////////////////////////////////////////////////////////// 
////////////////////////////////////
//////////check it
//////////////////////////////////////////////////////////////////////// 
///////////////////////////////////
*/
sctnNm_array[0][1];


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to