vexious Posted January 26, 2008 Share Posted January 26, 2008 We currently have this bit of code in fla (Flash . It sends a users high score to the php file. Does anyone know how to do this silently aka not having to refresh or redirect the page? Thanks.. Current Code: function New() { if (_root.MaxScore<_root.Score) getURL("http://domain.com/postscore.php?score="+_root.Score + "&level="+_root.level, "_top", "POST"); Show(); gotoAndStop("Display"); } Quote Link to comment https://forums.phpfreaks.com/topic/87847-send-score-to-php-from-flash-silently/ Share on other sites More sharing options...
koolaid Posted January 8, 2009 Share Posted January 8, 2009 We currently have this bit of code in fla (Flash . It sends a users high score to the php file. Does anyone know how to do this silently aka not having to refresh or redirect the page? Thanks.. Current Code: function New() { if (_root.MaxScore<_root.Score) getURL("http://domain.com/postscore.php?score="+_root.Score + "&level="+_root.level, "_top", "POST"); Show(); gotoAndStop("Display"); } yes in flash you would use: You would just have to make sure that your variable is nested in a movie clip. so in your example it would probably look like this. This code would go in the main timeline actions layer //your event onEnterFrame or button.onRelease or any other event savescore_btn.onRelease = function() { highscore_mc.highscore_tophp = highscore_mc.highscore_textfield.text; highscore_mc.loadVariables("phpfilename.php", "POST"); } Quote Link to comment https://forums.phpfreaks.com/topic/87847-send-score-to-php-from-flash-silently/#findComment-732645 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.