actionscript-3 - 使用 AS 3.0 发送邮件

标签 actionscript-3 form-post

我想在 flash 中提交表单并将用户发送到 html/php 中的其他页面并获取该页面上的帖子信息。我该怎么做?

最佳答案

// create a URLRequest object with the target URL:
var url : String = 'newpage.html';
var urlRequest : URLRequest = new URLRequest(url);

// create a URLVariables object and add all the values you want to send with their identifiers:
var urlVariables : URLVariables = new URLVariables();
urlVariables['formfieldId'] = 'formfieldValue';

// add the urlVariables to the urlRequest
urlRequest.data = urlVariables;

// set the method to post (default is GET)
urlRequest.method = URLRequestMethod.POST;

// use navigateToURL to send the urlRequest, use '_self' to open in the same window
navigateToURL(urlRequest, '_self');

关于actionscript-3 - 使用 AS 3.0 发送邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4848675/

相关文章:

C# 发布到不同的服务器

actionscript-3 - atan2函数和轴方向

actionscript-3 - 读取 URLLoader 的服务器错误消息

闪光灯允许按钮无法按下

actionscript-3 - 在 AS3 中,当值大于最大 int 时,getTimer() 将返回什么

java - Ext-GWT 高级表格

iframe - MVC 4 - Razor - "a potentially dangerous request.form value was detected from the client"

apache-flex - 使用 MP4 编码在 Flash 中流式传输网络摄像头视频

rest - 如何使用 ExtJS 3.1.0 获取 FormPanel 以发布 JSON?

javascript - 即使我检测到字段中有错误,也会形成帖子