In my flash game I use sendAndLoad to send information about the game played back to my server for for a high scoreboard.
I have recently started using MochiAds meaning that it my swf is hosted on another domain to where the PHP script resides.
If I use version control with the automatic preloader the sendAndLoad function just never seems to get called. However the SWF just on it's own running on my PC does post the scores?
I assume it has to be a cross domain problem?
datatosend['player'] = username.text;
datatosend['score'] = _root.score;
datatosend['pheight'] = _root.doodle_height;
datatosend['hscore'] = player_info.data.high_score;
var m:md5 = new md5();
datatosend['hash'] = m.hash(_root.score + username.text + _root.doodle_height + 'code');
if(datatosend.sendAndLoad("http://www.mywebsite.com/file.php", datatosend, "POST")) {
trace("Score Sent");
}
Does anyone know why and how to get around it or fix this problem?