Return to Snippet

Revision: 46936
at February 13, 2012 21:35 by shuchii


Updated Code
// Suppose your URL looks like this: http://www.your-domain.com?varName=varValue

// First of all, you should add this piece of code 
// to the HTML file that's embedding your swf.
// ! Your SWF should be embedded through the SWFObject class!
// swfObject.addVariable("varNameInFlash", "<?=$_GET["varName"]?>");

trace(this.loaderInfo.parameters.varNameInFlash);     // output will be varValue

Revision: 46935
at February 13, 2012 21:33 by shuchii


Updated Code
// Suppose your URL looks like this: http://www.your-domain.com?varName=varValue

// First of all, you should add this piece of code 
// to the HTML file that's embedding your swf.
// ! Your SWF should be embedded through the SWFObject class!
// swfObject.addVariable(�varNameInFlash�, �<?=$_GET["varName"]?>�);

trace(this.loaderInfo.parameters.varNameInFlash);     // output will be varValue

Revision: 46934
at May 27, 2011 20:13 by shuchii


Initial Code
// Suppose your URL looks like this: http://www.your-domain.com?varName=varValue

// First of all, you should add this piece of code 
// to the HTML file that's embedding your swf.
// ! Your SWF should be embedded through the SWFObject class !
// swfObject.addVariable(“varNameInFlash”, “<?=$_GET["varName"]?>”);

trace(this.loaderInfo.parameters.varNameInFlash);     // output will be varValue

Initial URL

                                

Initial Description
Accessing QueryString variables or flashvars

Initial Title
flashvars / querystring variables

Initial Tags

                                

Initial Language
ActionScript 3