Unless your using Flash8, createTextField doesn't return a reference. You
might be dealing with a bunch of undefined elements in your array....
On 1/19/06, cristian <[EMAIL PROTECTED]> wrote:
>
> 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
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
--
-------------------------
Lanny McNie
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders