Thanks all for the feed back.I deeply appreciate it.
I revised my code so that:
c = c.createEmptyMovieClip("c", 1);
is now:
c = this.createEmptyMovieClip("c", 1);
and I now have this as well:
/*
//populate each movie clip with an empty text field
*/
sctnNm_array[0][1];
for (j=0; j<sctnTxt_array.length; j++) {
c.createTextField("sctnNmTxt"+j, j, 10, j*20, 100, 30);
sctnNm_array[i][j] = c["sctnNmTxt"+j]
sctnNm_array[i][j].autoSize = true;
sctnNm_array[i][j].border = true;
I think I understand the issue with the lack of reference though I am
using Flash 8 Player w/ Flash 8, so
if I'm not misunderstanding is the problem here?:
for (k=0; k<sctnTxt_array.length;k++){
sctnNm_array[i][j].text = sctnTxt_array[k];
I'm still trying to figure this out, again thank you all for the tips
and any further advise
xtian
//create a container called "c"
c = this.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
*/
sctnNm_array[0][1];
for (j=0; j<sctnTxt_array.length; j++) {
c.createTextField("sctnNmTxt"+j, j, 10, j*20, 100, 30);
sctnNm_array[i][j] = c["sctnNmTxt"+j]
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
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders