flash as3 post值问题

来源:百度知道 编辑:UC知道 时间:2024/06/07 11:15:46
function Auto()
{
yogi.over_mc.yogi_time.text = Time;
yogi.over_mc.yogi_msg.text = Time + "秒之后自动提交...";
Time = Time - 1;
if (Time <= 0)
{
clearInterval(Auto_id);
getSubmit();
} // end if
} // End of the function
function getOver()
{
if (game_mc.mc_gameover._visible == true)
{
stopAllSounds ();
Score = game_mc.mc_gameover.score;
yogi_bg._visible = true;
yogi.over_mc.yogi_msg.text = "10秒之后自动提交...";
yogi.start_mc._visible = false;
yogi.over_mc.yogi_score.text = Score;
yogi.over_mc._visible = true;
yogi._visible = true;
clearInterval(getOver_id);
Auto_id = setInterval(Auto, 1000);
} // end if
} // End of the function
function getStart()
{
game_mc.gotoAndStop(2);
yogi._visible = fals

关键是这句:

_loc1.send(_level0.action, "_top", "post");

第一个参数就是POST的URL,看样子是在最顶层帧里的脚本中声明的一个叫action的变量。你查看一下帧里有“a”字样的帧的动作(英文flash中是Action面板)(就是帧对应的AS代码),里面应该有一个变量叫做action。

如果猜的没错应该像这样:
var action:String = "url";

改成你的flash.php估计就OK了。试试吧