Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
targeting a dynamic text box

targeting a dynamic text box

2004-02-17       - By Adrian McTaggart

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

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&nbsp;using:</FONT></SPAN></DIV>
<DIV><SPAN class=966271616-17022004><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=966271616-17022004><FONT face=Arial
size=2>Adrian</FONT></SPAN></DIV></BODY></HTML>

Earn $52 per hosting referral at Lunarpages.