Flex:应用程序有时永远无法通过预加载器
有时我的 Flex 应用程序会在预加载器上冻结,并且永远不会到达主应用程序。刷新页面通常可以解决此问题。但我不知道什么会导致这种情况。有人告诉我,这种情况发生在不同的浏览器中。
有什么想法吗?
我在其他 Flex 应用程序上也注意到了这一点,所以我真的不认为这是我的应用程序造成的。我在想也许这是一个错误,希望有解决办法?
谢谢!!
Sometimes my Flex app, freezes on the preloader, and never reaches the main app. Refreshing the page usually fixes this. But I have no idea what would cause this. I am being told that this is happening in different browsers.
Any ideas?
I have noticed this on other Flex apps as well, so I don't really think its something specific with my app causing it. I am thinking maybe its a bug that there is hopefully a work around for?
Thanks!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Flash Player 的调试器版本中是否也发生过这种情况?有时,错误会导致应用程序无法正确初始化,而普通播放器只会出现冻结状态。
该问题可能与您的应用程序有关 - 例如加载资源、发送 url 请求、解析 flashVars - 尽管它可能是不可预测的。在我开发 Flex 的两年里,我还没有遇到过这样的问题,所以至少这不是很常见的问题。
记录是一个好主意 - 至少在主标记中跟踪诸如预初始化和初始化之类的事件,以查看您走了多远。
Has this also happened in debugger version of the flash player? Sometimes an error stops the application from initializing properly and a regular player will simply appear to freeze.
The issue probably has to do with your application - for example loading assets, sending url requests, parsing flashVars - though it could be something unpredictable. I haven't encountered such a problem enough times to remember during the two years I've developed Flex, so at least it's not something very common.
Logging is a good idea - at least make traces to events like preinitialize and initialize in your main tag to see how far you get.
确保您使用的是最新的 Flex 3.5 SDK。我不确定那里是否存在已知的错误,但它会缩小可能性。
Make sure you are using the latest Flex 3.5 SDK. I'm not sure if there is a known bug there but it will narrow down the possibilities.
您可以做的最好的事情就是向您的应用程序添加日志记录,以便您可以确定您的应用程序在冻结时处于哪个阶段。
The best thing you could do is to add logging to your app so you can identify what stage your app is in when it freezes.
这是一个 IE 错误,页面加载完成后,您需要将 .swf 设置为 focus()。
This is an IE bug, you need to set the .swf to focus() once the page has finished loading.