apart from the _root reference whichis never a good idea
check you lower-case / upper-case naming on your textfield
Flash will treat P_1 and p_1 as different fields.
in your loop your only mapping references to p_1, p_2, p_3 ... etc etc
and fields named P_1, P_2, P_3 ... etc will never be referenced
Pete
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Lehr, Theodore M (N-SGIS)
Sent: Tue 15/04/2008 17:13
To: Flash Coders List
Subject: [Flashcoders] code review
What is wrong with this code:
for (i=1; i<6; i++) {
_root.main_content["p_"+i].setTextFormat(portNavOff);
}
P_1, p_2, .... are dynamic text fields..... Should this be working or
can I not target a text field like this?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders