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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with a simle re-direct script

Status
Not open for further replies.

PiMaster

Programmer
Jan 14, 2007
4
US
I'm making a game, and I'm making a button that re-directs to another page, but I need it to send the score variable and I don't know how. Anyone know?
 
u can use a getURL method & include the variable in the path, with a PHP script - should work.

Jonathan
 
i dont think you even need to use a PHP script
you could use javascript to split the url (window.location), grab the name value pairs, and write the OBJECT and EMBED tags, including FlashVars, with the values you have extracted from the url.
 
How do I do the getUrl and PHP? I need code, I don't know much actionscript.
 
I want to use post to send the variables. What's the getURL code for that?
 
Yeah, it sends the variables that are on the current timeline.
What I used to do was put all the variables that I wanted to send on a movieclip (such as a send button), and put the getURL code on the button MC too, to ensure everything was together. This is simple and works, but nowadays its better practice (AS2.0) to use the LoadVars class.

See
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top