/ Published in: ActionScript 3
                    
                                        Accessing QueryString variables or flashvars
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 // 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
Comments
                    Subscribe to comments
                
                