I have a html for render Flash swf files and this has its parameter “movie” and this “movie” value is the url of the swf.
And in my swf, I have a method loadXml(“myXMLFile.xml”) that reads a xml, get its attributes and show them in swf. So far so good…
But, what I’m looking for is to pass a QueryString in the movie value, such as “myMovie.swf?myFile=anotherXMLFile.xml” and makes the swf loads this querystring parameter and loads the “anotherXMLFile.xml” instead of the “myXMLFile.xml”.
That is… I want to dynamically send to swf the XML File I want to load…
Is there a way to do that??
You can check out this post:
Flash: Passing Variables to Flash from HTML via Query String
If that doesn’t take care of what you’re looking for, you can also check out:
SwfObject
SwfObject gives you a way to load up a SWF and pass parameters to the SWF via javascript. You could access your page query string variables and pass them to the SWF that way.