Page is a not externally linkable
- Code, Content, and Presentation
-- Flash and Shockwave
---- Pulling URL for buttons from text file.


rocknbil - 7:18 pm on Jan 30, 2010 (gmt 0)


Welcome aboard btrammell!

What makes you say XML is unsupported? I remember using it since FlashMX, and pretty sure Flash supported it before that . . . I cannot imagine why it wouldn't work as if it's something to do with the server configuration, it's not the server that's parsing the XML, it's Flash.

Which prompts the next question, what is your development environment? The answers may have slight variations depending on Flash version.

Does anyone know how I can specify a link or button as a variable?
I am also interested in adding a photo where the URL can be a variable too

It can be cobbled together using a combination of flashVars and getURL, but I would hit the XML import methods for both of these. You craft an XML file that holds the info in various nodes, then dump the data into arrays within Flash when the XML is loaded. A typical example for both these instances is a Flash slide show with captions.

Then you go back and build an admin interface that actually writes the XML file so the client can configure it and change it at will. Then you're a star. :-)

I looked up an old thread about building a Flash slide show using XML import methods. For your perusal, look at post #2 and see how easy it can be [webmasterworld.com].


Thread source:: http://www.webmasterworld.com/flash/4070948.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com