weixin_33693070 2011-09-16 16:59 采纳率: 0%
浏览 27

通过AJAX提交Flash AS2表单

I have a client who makes Flash AS2 based language learning software.

They wanted to add a bug report email to the apps.

It is dead simple if you don't mind the swf's post opening a new tab:

on (release, releaseOutside) {
  var my_Var:LoadVars = new LoadVars();
  my_Var.brsub = subject.text;
  my_Var.brmsg = message.text;
  my_Var.send("bug_report.php", "_blank", "POST");
}

I am looking for docs or an example in AS2 of making this post via AJAX and not opening the new tab.

Anyone know where I can read up on it. I know it must be out there but my Googling has come up empty.

  • 写回答

1条回答 默认 最新

  • helloxielan 2011-09-23 18:38
    关注

    You don't need to make an AJAX Request in Flash to process that request: you can use the loadVariables method to send data via POST, without leaving your Flash movie:

    Adobe Help Reference

    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题