Flash Txt
- Started
- Last post
- 6 Responses
- fullfront
I have search and have not found an answer. Please help...
I need to load multiple variables from one .txt into flash. The problem is, it works fine if I have the text fields on the _root, but when I put the text fields into a movie clip to animate them, they don't show up.
I can't figure out how to call them so they appear inside the movieclip.
The text file is just: text01=8374&text02=8475847&text0...
The load actionscript is: loadVariablesNum("info.txt", 0);Each one of the text numbers needs to be in a separate field to be animated.
- preston0
you need to have the right path to the text fields....
i havent done this in a while... but try
instancename.loadVariablesNum("i...
or put
instancename.text01=8374
in the text file... i think thats what you want actually
where "instancename" is the instance of the clip you are putting the text fields in.
- autonoma0
Actually, instead of:
loadVariablesNum("info.txt",0);
you'll need to target the movie clip you want the text in directly, like:
loadVariables("info.txt", "_root.movieClipNameHere");
- ********0
make sure that the text does not have "render as html" proprety checked to on...
or one of those properties that render it based on the client's text render settings...if you know what I mean....
- mazz0
You could also just reference the textfield in the movieclip to the variable in the root after you've loaded the text, eg:
instance1_mc.var1 = _root.var1;
- unknown0
render as html basically means you can add html code to that txt field. just basic stuff like etc. has nothing to do with the render settings of the client.
- unknown0
... that was stuff like less than B greater than but than in html. app. can add that here. sorry for the inconvenience.