Hey - Im having trying to populating empty Text Fields with an array of strings: Any help would be appreciated.
Thanks in advance
xtian

This is my code that although has no syntax errors doesn't show anything in the swf created

//create a container called "c"
c = c.createEmptyMovieClip("c", 1);
/*
*/
//within c create an array holding mcs that in turn hold empty textfields
var sctnNm_array:Array = new Array();
//
sctnNm_array[0] = c.createEmptyMovieClip("sctnNm"+sctnNm_d, sctnNm_d); //---------------------------------------------***depth 0 sctnNm_array[1] = c.createTextField("sctnNmTxt"+sctnNmTxt_d, sctnNmTxt_d, sctnNmTxt_x, sctnNmTxt_y, sctnNmTxt_w, sctnNmTxt_h); //---------------------------------------------***depth 1
/*
*/
/*
//create a function to add text to the empty textfields
*/
var sctnTxt_array :Array = new Array("news", "philosophy","about us","excursions","rentals","locations","gallery","links","contact");
/*
*/
function addTextNames (){
        sctnNm_array[1].text = sctnTxt_array;
}
//check
function showFields() {
        trace(sctnNm_array);
}
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to