View Full Version : Html link to load swf then load specific xml file

12-21-2007, 11:50 AM
Hi I'm still learning a lot to do with actionscript and not even sure if this can be done so this is a long shot!

I want to have a link in html to load an xml file in a swf - haha does that make sense??

Eg: The user to be able to click on the websites link on "http://crushdesign.co.uk/links.html"
Then that take them to "http://crushdesign.co.uk/portfolio.html" BUT in the Web section of the swf!

Thanks guys

12-23-2007, 12:02 AM
I think I know what you mean. If I do, this might help.

You might want to have a search for "using flashvars" in a search engine.

Flashvars allow you to pass parameters into a Flash application (like the name of an xml file) when it loads. You put them after the swf file name.

How you use them is slightly different depending on what version of ActionScript you're using.