通过AJAX提交Flash AS2表单

时间:2022-09-25 15:51:10

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

我有一个客户端制作基于Flash AS2的语言学习软件。

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:

如果你不介意swf的帖子打开一个新标签,这很简单:

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.

我正在寻找文档或AS2中通过AJAX发布此帖子而不打开新标签的示例。

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

任何人都知道我可以在哪里读到它。我知道它必须在那里,但我的谷歌搜索已经空了。

1 个解决方案

#1


1  

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:

您无需在Flash中制作AJAX请求来处理该请求:您可以使用loadVariables方法通过POST发送数据,而无需离开Flash影片:

Adobe Help Reference

Adobe帮助参考

#1


1  

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:

您无需在Flash中制作AJAX请求来处理该请求:您可以使用loadVariables方法通过POST发送数据,而无需离开Flash影片:

Adobe Help Reference

Adobe帮助参考