View Full Version : reading the url parameter
scravius
04-08-2004, 03:58 AM
im trying to make my flash file to read the url parameter where it was loaded. for example, my flash file myfile.swf is loaded in an html file called myfile.php. can the flash file read the url parameter if there is something like this myfile.php?var1=john.. izzit possible to read it? im stuck!
Billy T
04-08-2004, 05:01 AM
think you would have to use php or javascript or something to insert the vars from the query into the FLASHVARS property
Das123
04-08-2004, 03:57 PM
myURL = _root._url;
This will give you the full address, including the directory structure and file name. You can then delete these known elements from the URL variable to get the host.
Das123
04-08-2004, 04:01 PM
Oops. I didn't read thoroughly what you wanted. To read the query string of the URL I think Billy_T is right. You will need to pass parameters in via php when the flash file is loaded.
scravius
04-11-2004, 10:39 PM
thanks guys, the flashvars works!
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.