我应该关闭 Flash 中的警告模式吗

发布于 2024-10-20 03:11:34 字数 1223 浏览 5 评论 0原文

一些背景

我使用 WCK 制作 Box2D 游戏,WCK 是 Box2D 的炼金术端口,具有 Flash IDE 友好界面。

WCK 是重组件,并且还具有必须包含的 SWC。

基本上,一旦我设置了一个基本世界和一个静态和动态主体(一个下落的盒子和地面),编译时间就从几秒钟(空项目,甚至只是艺术)变成了 20-40 秒!随着我添加越来越多的主体类型(和组件),编译逐渐变得越来越乏味,到项目结束时,我觉得如果我必须多次编译来跟踪某些内容,那么至少需要半个小时来调试某些内容有关错误的信息以追踪它。

关于这个问题

今天,我正在拼命寻找方法来防止这个问题困扰未来的项目。

我尝试获取所有 WCK 参考文献(世界、身体等),并在它们变为 SWC 时对其进行编译。或 RSL。 (这会很混乱,我真的不想这样做。)

我最终偶然发现了某些发布设置所产生的巨大影响,并将其范围缩小到警告模式。一旦我把它关掉。我的编译时间恢复到可接受的范围 5-10 秒。

我对这个功能做了一些挖掘,但我认为它对我没有用。我很惊讶它在 Flash CS5 中默认处于打开状态。

据我了解,根据 Adob​​e 的说法,警告模式的目的是帮助纠正正在过渡到 as3 的 as2 开发人员。 http://help.adobe.com/en_US/flash/cs /using/WS3e7c64e37a1d85e1e229110db38dec34-7fa4a.html “警告模式会报告额外的警告,这些警告对于在将 ActionScript 2.0 代码更新到 ActionScript 3.0 时发现不兼容性很有用。”

关于该主题的另一篇文章

http://www.bytearray.org/?p=931

如果这真的只是给我AS2相关的错误,比如“as3不支持onEnterFrame”,他们真的会在CS5中默认保留它吗? as2 已经过去了 3 代...

问题

我不会犯 AS2 错误,多年来我只使用 AS3 进行编码。如果我关闭警告模式,我会错过任何重要的调试信息吗?

Some Background:

I make Box2D games using WCK, which is an alchemy port of Box2D with a Flash IDE friendly interface.

WCK is component heavy, and also has a SWC that you must include.

basically as soon as i setup a basic World and a Static and Dynamic body (a falling box and the ground) the compile time has gone from a few seconds (empty project, or even just art) to 20-40 seconds! as i add more and more body types (and components) it gradually becomes more and more tedious to compile, by the end of the project i feel like it takes a half hour minimum to debug something if i have to compile several times to trace some info about the bug to track it down.

About The Question

Today I was despritely looking for ways to prevent this from plaguing future projects.

I looked into trying to take all of WCK references (World, Bodies, etc) and compiling them when ever they change into a SWC. or RSL. (this would have been a mess, i really don't want to do this.)

I eventually stumbled on the drastic effect that some publish settings have, and i narrowed it down to Warning Mode. as soon as i turn this OFF. my compile times pick right back up to acceptable ranges 5-10 seconds.

I did some digging on what this feature does, and i don't think it is useful to me. and im surprised it's left on by default in Flash CS5.

from what i understand, according to Adobe, the purpose of Warnings Mode is to help correct an as2 developer who is transitioning to as3.
http://help.adobe.com/en_US/flash/cs/using/WS3e7c64e37a1d85e1e229110db38dec34-7fa4a.html
"Warnings Mode reports extra warnings that are useful for discovering incompatibilities when updating ActionScript 2.0 code to ActionScript 3.0."

another post about the topic

http://www.bytearray.org/?p=931

If it really is just to give me AS2 related errors like "onEnterFrame is not supported in as3" would they really leave it on by default in CS5? 3 generations past as2...

The Question

I do not make AS2 errors, i have been coding in AS3 only for years. If i turn Warning Mode off am I going to miss any important debug info?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

走走停停 2024-10-27 03:11:35

我非常怀疑你是否需要将其保留。您已经足够熟悉 AS3,不会再犯 AS2 的旧错误。我看不出它对你有什么价值。

I highly doubt you need to leave it on. You're steeped sufficiently in AS3 that you're not going to make old AS2 mistakes. I don't see the value in it for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文