Flex:发布但不显示
var url:String = "http://www.[yourDomain].com/application.jsp";
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.exampleSessionId = new Date().getTime();
variables.exampleUserLabel = "guest";
request.data = variables;
request.method = URLRequestMethod.POST;
navigateToURL(request);
这个示例是我想要实现的功能,但是我想在后台实现此功能。此代码打开一个窗口。
var url:String = "http://www.[yourDomain].com/application.jsp";
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.exampleSessionId = new Date().getTime();
variables.exampleUserLabel = "guest";
request.data = variables;
request.method = URLRequestMethod.POST;
navigateToURL(request);
This example is the functionality I want to achieve, however i want to make this happen in the background. This code opens a window.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要创建一个
URLLoader
并调用其load()
方法来“在后台”执行操作。如果您要发回数据,则可以通过
事件
进行管理。You need to create a
URLLoader
and call itsload()
method to do stuff "in the background".If you're sending data back then you can manage this through an
Event
.sendToURL( )
忽略任何响应sendToURL()
ignores any response