Hi Theodore

Have you tried it without the loop?

i=1;
_root.main_content["p_"+i].setTextFormat(portNavOff);

_root.main_content["p_"+i].text="hello world!";

also, have you put text in p_1 already? Because the order that Flash wants is you setTextFormat on the text field, and then you put the text in it.

HTH

Gabino


----- Original Message ----- From: "Lehr, Theodore M (N-SGIS)" <[EMAIL PROTECTED]>
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Tuesday, April 15, 2008 10:13 AM
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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to