_root[tempUSname].text = _global.c1schoolName;

good luck.

On 04/02/06, dls <[EMAIL PROTECTED]> wrote:
>
> Sorry for the urgency, but I have a morning deadline today.
>
>
> Have a series of dynamic textfield on my stage named: usName1 , usName2,
> etc.
> I am trying to populate specific fields with some text.
> I am trying to choose which field is populated dynamically.
>
> (I have hard coded the _root.currentNameNumber for the example below)
>
>                 _global.c1schoolName = Fenwick;
>                 _root.currentNameNumber = 1;
>                 _root.tempUSname = "usName"+currentNameNumber;
> ////trying to dynamically choose the text field usName1  this is where
> it breaks!
>                 _root.tempUSname.text = _global.c1schoolName;
>
>
> If I hard code the text box name it works OK
>                 _root.usName1.text = _global.c1schoolName;
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--
Yotam Laufer | Flash Developer | mobile +44 (0) 79 205 17 212 | skype:
ubermutt
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to