PDA

View Full Version : How to receive get variables with flash?


amir103
06-11-2007, 05:59 PM
So I have a swf, if i go to www.example.com/someflash.swf?somevar=content

how can i make the swf file recieve the variable? More specifically, the swf file is an flv player, and I need one of the parameteres (URL of flv file) to be recieved as a get variable.

_Aerospace_Eng_
06-12-2007, 09:48 AM
You can use this.somevar to get the variable. If you are using the built in Flash components for FLVPlayback then you can assign the variable to contentPath. You just have to set an instance name to the flvplayer.
instancename.contentPath = this.somevar