本文介绍了AS3的URLRequest超时(不是AIR)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我建立一个网络应用程序,应该发送一些数据到服务器。Flash有一个内置的超时限制的URLRequest设置为30秒。我不能使用AIR(因为这个解决方案应该从浏览器中运行),有时请求是针对以上30秒

I am building a web-app that should send some data to the server.Flash has a built in timeout limit for URLRequest set to 30 seconds.I cannot use AIR (as this solution should run from the browser) and sometimesthe request is for more than 30seconds.

Flash将忽略在30秒后收到的任何数据,并发送一个IO错误事件,虽然当我检查服务器,该脚本将被执行。

Flash ignores any data received after 30 seconds and sends an IO Error event although when I check the server, the script would have been executed.

有没有什么解决方案来修改超时限制?也许一个更聪明的方法是什么? (任何库将一个巨大请求分成较小的块,并验证它们被发送到服务器)?

Is there any solution to modify the timeout limit?Maybe a smarter way? (any libraries to divide a huge request into smaller chunks and verify they are sent to the server)?

推荐答案

您可以尝试从JS登记JS回调和使用的要求。

You can try to register JS callback and use requests from JS.

这篇关于AS3的URLRequest超时(不是AIR)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 14:33