View Full Version : Variables from Address Bar to Flash
evlctgy
08-12-2008, 04:35 AM
I would like to make a website in which I can pass variables from the Address Bar to the Flash movie such as the website http://www.forces.ca/
My website is http://www.294air.org/
What is the best way to pass variables the same way they are passed with the forces site?
Regards, The Honorable, Sven Arsenault
Look into, http://www.asual.com/swfaddress/
evlctgy
08-26-2008, 06:42 PM
Thanks, anything more so like a tutorial though? I always find it better to understand completely what I am working with. . .
vcovcf
08-27-2008, 03:45 AM
i didn't really bother to check to see how they were passing the variables, but you can always use shared objects, the query string, or some custom php that you call which passing information back to your flash.
i think the easiest is just retrieving a value from the query string. whatever parameter you want inside the flash, get it by using http://www.294air.org/?yourParam=34&yourOtherParam=foo
you can retrive this in as2 with the "._url" property. and you can do it much easier in as3 by directly accessing the param without having to parse and hack up the string of the url....
var value1:String = root.loaderInfo.params.yourParam;
Sorry if this isn't the way you want it, just want to make sure you know the other options.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.