I have a variable called score in my flash game and I want to post the score from my flash game to a php file called test.php; the last part of the AS3 code when game is finished is:
function gameFinished(){
gameOver.play();
stage.removeEventListener(MouseEvent.CLICK, kick);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragCursor);
Mouse.show();
again_btn.addEventListener(MouseEvent.MOUSE_DOWN, playAgain);
}
Here is where I want to publish my score var to the php file so I can use it in a leaderboard; I have read many tutorials but having a really hard time. Could you please guide me a little bit?