all groups > flash data integration > march 2006 >
You're in the

flash data integration

group:

Load URL Variables into SWF


Re: Load URL Variables into SWF Motion Maker
3/10/2006 4:24:43 PM
flash data integration:
Here is the overview for passing variables into a swf:
http://livedocs.macromedia.com/flash/8/main/00001204.html

From a security point the filename more visible when passing on the URL line
and as FlashVars.

Personally I would XML or LoadVars to pass the filename making it more
difficult to see.

Then once the filename variable is available:

Then once you have the file name variable you can use the XML.load example
at
http://livedocs.macromedia.com/flash/8/main/00002872.html

If you understand Flash components and like using them, you will find XML
components can bind them to the XML data coming in. Otherwise many simply
like to move the XML data to the needed places in AS code.

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
What ActionScript do I need in order to:
Pass one variable into a SWF. That variable would be a file name.
Then I would use that file name to load an XML file with additional
variables.
Then it would grab those variables and I could use them inside the SWF.

Thanks!


G

Load URL Variables into SWF Gena Wenli
3/10/2006 6:26:02 PM
What ActionScript do I need in order to:
Pass one variable into a SWF. That variable would be a file name.
Then I would use that file name to load an XML file with additional variables.
Then it would grab those variables and I could use them inside the SWF.

Thanks!


G
AddThis Social Bookmark Button