Flex 调试模式差异很大,为什么?
我在一个大型 Flex 应用程序上遇到了这个非常奇怪的问题,如果用户安装了调试 Flash,那么它可以在调试 swf 下正常运行,但对于使用标准版本 Flash 的人来说会存在一些差异。
这些差异包括:
没有弹出窗口
释放所有事件捕获
按钮的奇怪位置
I 的奇怪位置在某处读到 updatedisplaylist 的处理方式有所不同? 现在我将尝试导出发布方式而不是 bin-debug swf,并返回提交以查看转折点。
有类似经历吗?
I have this very strange problem on a big flex app where it would run fine with the debug swf if the user has debug flash installed but will have some disparities for people with standard version of flash.
These disparities include:
No pop ups
loose all event catching
Weird positioning of a button
I read somewhere that updatedisplaylist was handled differently ?
For now i will try the export release way instead of the bin-debug swf, and to go back in the commits to see what was the turning point.
Any similar experiences ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经使用 Flex 很长时间了,从未听说过任何与使用 Flash 播放器的调试版本和标准版本相关的问题,但我遇到过与您遇到的类似的问题。
当应用程序中发生异常时,例如尝试访问 null 类中的某些内容或尝试访问只有 9 的数组中的元素 10,调试播放器将弹出一个窗口,指出发生了异常,并为您提供一个堆栈跟踪,即使您没有主动调试应用程序。 标准播放器没有,因此用户无法知道出了什么问题。
根据我的经验,发生未捕获的异常后,它可能会使从该点开始的所有正在运行的代码变得非常不稳定,从而导致您列出的所有问题以及更多问题。
我怀疑您的问题与标准播放器之外的两个不同播放器没有给您提供有关应用程序状态的任何反馈有关。
I've been using Flex for a long time and have never heard of any problems like these being related to using the debug vs standard versions of the Flash player, but I have experienced problems similar to what you're experiencing.
When an exception occurs in your application, like attempting to access something in a null class or trying to access element 10 in an array that only has 9, the debug player will pop up a window stating that an exception has occurred and give you a stack trace, even if you're not actively debugging the app. The standard player does not, so the user will have no way of knowing that something went wrong.
In my experience after an uncaught exception occurs it can make all running code from that point on very unstable, causing all of the problems you list and more.
I doubt your problem has anything to do with the two different players beyond the standard one not giving you any feedback about the state of your app.