AS3的URLRequest超时(不是AIR) [英] AS3 URLRequest Timeout (not AIR)

查看:342
本文介绍了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 sometimes the 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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆