我想在 Flash 中提交一个表单并将用户发送到 html/php 中的另一个页面并获取该页面上的发布信息。我怎样才能做到这一点?
问问题
2176 次
2 回答
4
// 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');
于 2011-01-31T10:40:16.913 回答
0
使用URLRequest类
于 2011-01-31T07:58:53.523 回答