I have a url like this
www.website.com?fname=Peter
and I have a Dynamic Text field as fnameurl in my Flash movie and want to show Peter in the Dynamic Text field once its opened on a browser. How can I grab the url Parameters and display it on the browser?
Thanks
The most straight forward way would be to use the FlashVars parameter. It is defined via an HTML
paramtag like this:The value must be formatted as a URL query string. The indiviual key/value pairs will be made available in the root of the SWF movie. In AS2 you can simply access them using
_root:In AS3 these values are available via
LoaderInfo.parameters:Long story short, you could do it like this in PHP:
and then in AS: