我有以下代码,效果很好。唯一的缺点是用户必须单击提交分数按钮才能使下面的代码工作。
有没有可能使这成为一项自动功能?这样当游戏结束时,用户将自动被带到test2.php
.
on(release){
sendscore = new LoadVars();
sendscore.gameID = "e97b67c67b00e382";
sendscore.username = _root.username;
sendscore.score = _root.highscore;
sendscore.userID = _root.userID;
sendscore.sessionID = _root.sessionID;
sendscore.table = _root.table;
sendscore.tid = _root.tid;
sendscore.send("/test2.php","_self","POST");
}