Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Do I get name/values pairs in URL?

Status
Not open for further replies.

AlbertAguirre

Programmer
Nov 21, 2001
273
US
My flash movie is part of my PHP page.
I want to be able to read the URL and do something with the flash movie. How?

Example:
URL:
Flash logic: If var = "test" then start the movie in a different location

Please help...
 
Well, haven't used PHP much at all, but you have to send the data with PHP and use a geturl (using GET or POST), in this case a GET would probably be what you want.
 
In the php page where you have your flash file embedded modify the code where the movie is named to something like this:

<PARAM NAME=movie VALUE=&quot;myMovie.swf?var='.$test.'&quot;> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>

The value of 'var' will now be available as a variable on the movie's main timeline.
 
So wierd, now it seems to be loading the movie every time.
Its like its not keeping it in cache.

Is this related to passing the value to the main timeline?

 
What does the flasdh code look like?
This:
if(/:var=1)
{
blah bah...
}

Is this correct?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top