I've created zip containing a PNG and swf file, that I made. I added the code:
sendscore.gscore = _root.score;
sendscore.gname = "Bop_the_ICOYAR";
sendscore.send("index.php?act=Arcade&do=newscore","_self","POST");
To a button in the small game to send the score. Yes, my score variable is attached to the root and named root. My swf and png are both named Bop_the_ICOYAR, and the zip installs properly, but when a score is sent I get the error:
An error occurred while saving score
Anyone know what I did wrong? I am using SMF 2.0.2 and SMFArcade 2.5 RC1.1D.
Thanks for any help.
EDIT:
It didn't work with this code either:
[code]_root.sendscore.gscore = _root.score;
_root.sendscore.gname = "Bop_the_ICOYAR";
_root.sendscore.send("index.php?act=Arcade&do=newscore","_self","POST");
[/code]
Nvm, I put a PHP file in the package and it worked.
Certain types of arcade games need that php file to work.