  | |  | targeting a dynamic text box | targeting a dynamic text box 2004-02-17 - By Adrian McTaggart
Back I am trying to change the text in a dynamic text box using: _root.compCardMain1.catATitle.textColor = 0xFF0000; I thought that this should work but doesn't. How can I make sure I am targeting the text box correctly. I used a bit of code before to trace where a movie clip was located, i.e. trace this mc path, but can't remember what it was. The text box is inside an mc that is being duplicated using duplicate movie clip. Any ideas on how to check this? TIA, Adrian
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=966271616-17022004><FONT face=Arial size=2>I am trying to change the text in a dynamic text box using:</FONT></SPAN></DIV> <DIV><SPAN class=966271616-17022004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=966271616-17022004><FONT face=Arial size=2>_root.compCardMain1.catATitle.textColor = 0xFF0000;</FONT></SPAN></DIV> <DIV><SPAN class=966271616-17022004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=966271616-17022004><FONT face=Arial size=2>I thought that this should work but doesn't. How can I make sure I am targeting the text box correctly. I used a bit of code before to trace where a movie clip was located, i.e. trace this mc path, but can't remember what it was.</FONT></SPAN></DIV> <DIV><SPAN class=966271616-17022004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=966271616-17022004><FONT face=Arial size=2>The text box is inside an mc that is being duplicated using duplicate movie clip.</FONT></SPAN></DIV> <DIV><SPAN class=966271616-17022004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=966271616-17022004><FONT face=Arial size=2>Any ideas on how to check this?</FONT></SPAN></DIV> <DIV><SPAN class=966271616-17022004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=966271616-17022004><FONT face=Arial size=2>TIA,</FONT></SPAN></DIV> <DIV><SPAN class=966271616-17022004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=966271616-17022004><FONT face=Arial size=2>Adrian</FONT></SPAN></DIV></BODY></HTML>
Earn $52 per hosting referral at Lunarpages.
|
|
 |