all groups > flash data integration > february 2007 >
You're in the

flash data integration

group:

XML/LoadVars help


XML/LoadVars help martoons1
2/21/2007 4:40:15 PM
flash data integration:
Hi. I need some help trying to load indivual strings of text from an external
file.
example:
I have a movie that navigates from frame to frame. on each frame I'd like a
line of text to load into the movie. When the user navigates to the next frame
the text loaded vanishes and is replaced by another line of text. This can be
done with separate txt files, right but I was wondering if and how it could be
done using one external text file.
Thanks for any help.
Re: XML/LoadVars help MotionMaker
2/21/2007 5:51:26 PM
If you are using LoadVars you have all your variable data pairs separated with
the &. Ex:
&var1=Text&var2=Text for var2&var3=Text for var3

There can be no line returns in the file so you might need to use word wrap
when creating the static file.

Your LoadVars return object will then have each of the variables and you can
consume them as needed.
ex:
trace(myReturn_lv.var1)
trace(myReturn_lv.var2)
Re: XML/LoadVars help martoons1
2/23/2007 11:19:24 PM
Thanks I'll give it a shot.

AddThis Social Bookmark Button