|
-
http://8r14n.com/flashdev/
I created an array that duplicates a MC, which has a text field inside it. As the array is building itself, how can I assign a string variable from an external .txt file to the text fields INSIDE the duplicated Movie clips???
Any help is appreciated!
-Brian
-
I wrote a tutorial that addresses this topic. Hopefully you'll be able to download the source FLA some time this weekend. The basic premise, though, is to have the variables that are read in from the text file be numbered to synch with what clip you want to include them in.
Thus, if you just created a clip with:
eval("clip_"&x)
Where x is any integer, then the corresponding variable in the text file should probably be:
var_x
Then... all you have to do is set some known global variable such as /:var = eval("var_" & x), then do a tell target on the clip you just created and set the field variable = /:var
That should do the trick.
Joshua Sullivan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|