| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Nov 2009
Posts: 1
|
From my main timeline actions, how can I tell a dynamic text box inside a movieclip to update?
I have a movie clip with the dynamic text box called catalog. The instance name for the text box is catalogtext. On the main time line, I am using a loop to repeatedly attach the catalog movie clip. I want the dynamic text to show the value of i, and each time the movie clip is reproduced, increase by 1 each time. Here is my current attempt: for (i=1; i<=9; i++) { container.attachMovie("catalog","catalog"+i+"_mc", i+200); mycatalog_mc = container["catalog"+i+"_mc"]; mycatalog_mc._x = (i-1)*myThumb_mc._width; mycatalog._y = (Stage.height-myThumb_mc._height)/2; this["catalog"+i+"_mc"].catalogtext.text = i; Everything works fine, but the text box won't show the value of i. I must not be calling it correctly? |
|
|
|
|
|
#2 |
|
Member
Join Date: Nov 2004
Posts: 94
|
try:
ActionScript Code:
Might as well keep the same reference to the movieclip throughout, no sense changing it to target the textfield... If you can position the x and y coordinates, you should be able to target the textfield with the same var. Or just change the *this* to be *container*... As that is where the movieclip is... |
|
|
|
|
|
|
|
|
#3 |
|
Flash Nerd
Join Date: Apr 2009
Posts: 1,256
|
Attach your .fla.
__________________
“Nothing that is worth knowing can be taught.” - Oscar Wilde |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|