Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / February 2007



Tip: Looking for answers? Try searching our database.

XML/LoadVars help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
martoons1 - 21 Feb 2007 16:40 GMT
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.
MotionMaker - 21 Feb 2007 17:51 GMT
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)
martoons1 - 23 Feb 2007 23:19 GMT
Thanks I'll give it a shot.

G
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.