OZONE Asylum
Forums
Multimedia/Animation
Using Word generated XML w/ flash for dynamic text?
This page's ID:
11300
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
What if you don't know anything like XML or PHP and you want to use dynamic text in Flash? I just use a dynamic text box called textBox. Set it to word wrap, HTML, multiline, font to _sans or _serif. Format your text files like this: page1=This is my text, it goest right here..... If you want to have more than one variable on a page, use the &Title=1 &Chapter=2 etc... Save as a .txt file (you can format in HTML 1.0 if you like). On the first frame of your flash movie, type: loadVarNum("your.txt", 0); or make the variable decisions later with buttons and just set var on the first frame. Make the decisions with buttons, loops and a loadVar function, or you could just write a function that loads the file you ask for by setting variables with buttons. I havn't used XML yet, but I understand the parsing in Flash to be a bit slow, I think you can do everything internally much easier with the above mentioned process. Ingnorance may be bliss. I see this post is pretty fresh, so if your still working on this and need a hand, let me know - I have a little time. 5guys@tcinternet.net [This message has been edited by quatroGringo (edited 04-19-2002).] [This message has been edited by quatroGringo (edited 04-20-2002).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »