View Full Version : XML...Flash
flashaddictz
05-13-2008, 01:51 AM
I need to create a button from flash and have it release a new _blank html page, BUT not through action script but though xml file. Therefor I have to put the actual url address on the .xml
Welcome aboard,
Your actionscript should parse the xml file when the flash file loads, and then assign the getUrl method to the button once it has imported the correct URL from the XML file.
There are dozens of threads on this forum about XML and thousands of tutorials around on it; what your asking is a prety common/basic use of it.
Try looking around for image gallery tutorials that use XML files, those typically show how to pull a url from XML and call an image in AS using it. You would just send that info to your getUrl instead.
Otherwise, if you have a file or some basic code that you want help with post it here.
minthu
05-15-2008, 06:32 AM
Here is one sample file (http://www.flashmo.com/preview/flashmo_088_menu_xml) for you.
Heh, in an amazing cooincidence of events I'm helping someone else with that exact file on another thread, except he removed the part from the top that says you authored it...
Too wierd:
http://www.actionscript.org/forums/showthread.php3?t=170622
No offense to you either Min Thu, but I did clean up your code a little bit in that thread to make it easier to follow.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.