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?
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.