I have this tetris game that i am trying to send the vars ( lines cleared, username, and password) to a php file for processing but i guess im coding the actionscript wrong.
I have this in the root:
_root.add_pass = "{password}";
_root.name = _root.Loser.username;
_root.score = _root.lines_cleared;
stop();
And the following in a “loser” movie clip thgat appears after a game when the user can input their name for the score to be saved.
submit1.onPress = function () {
getURL("new_score.php", "_blank", "POST");
}
stop();
Its supposed to POST the vars to the php file on submit.
what am I doing wrong?
The “game” movie clip contains most of the scripts. Is it necessary to add that movie clip after _root in the code above?
heres a link to the source: