`

10条Flash AS3开发人员实用的简单细节事情

阅读更多

1. 弹性“跑道“模型

开发者应该知道事件何时被触发,代码何时被执行,Player何时进行渲染,这是每个Flash开发者都需要掌握的Flash Player基础概念。

延伸阅读

http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/

2. FlexSDK、mxmlc、compc…

开发者应该知道在点击Eclipse中的“run”按钮时都发生了哪些事情。

延伸阅读

http://www.senocular.com/flash/tutorials/as3withmxmlc/

http://livedocs.adobe.com/flex/3/html/help.html?content=apparch_08.html

3. Player事件、客户化事件以及事件冒泡

没有帧(Frame)和鼠标点击的Flash Player是无法想象的。

延伸阅读

http://www.adobe.com/devnet/actionscript/articles/event_handling_as3_03.html

http://livedocs.adobe.com/flex/3/langref/flash/events/package-detail.html

http://www.tink.ws/blog/custom-events-in-as-30-dont-forget-to-override-the-clone-method/

http://jacwright.com/blog/70/how-to-listen-to-flash-events-that-dont-bubble/

4. 语句、关键字和指令

开发者不应该对as3中新出现的关键字感到惊讶。如果不知道“static”或是“override”是什么意思,学就行了。

延伸阅读

http://livedocs.adobe.com/flex/2/langref/statements.html

5. ASDoc

今后当你再一次阅读自己编写的代码时可能看不懂写的是什么了,因此恰当的文档是非常必要的,但如果能自动生成岂不美哉?

延伸阅读

http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_3.html

6. 管理好可视化资源(图片、字体、CSS等等)

Flash是可视化的东西,因此有必要了解代码与资源的管理手段。

延伸阅读

http://www.gskinner.com/talks/flexlovesflash/

http://code.google.com/p/queueloader-as3/

http://code.google.com/p/bulk-loader/

7. 理解Array、Collection、Dictionary与Map

通常开发者不会只处理一个MovieClip,因此需要了解如何控制多个对象。

延伸阅读

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html

http://www.gskinner.com/blog/archives/2006/07/as3_dictionary.html

http://code.google.com/p/as3ds/

8. 以编程的方式处理动作

如果只搞静态的东西还不如使用HTML呢。

延伸阅读

http://blog.greensock.com/tweenmaxas3/

http://www.amazon.com/Foundation-Actionscript-3-0-Animation-Making/dp/1590597915/ref=sr_1_1?ie=UTF8&s=books&qid=1243014431&sr=8-1

9. OOP、编码与框架的合理使用

时至今日,一个巨大的.as文件闯天下的时代已经过去了。开发者需要将代码转到组织良好、可重用的对象中。现在的as3框架也层出不穷,合理地使用框架有助于代码的管理。

延伸阅读

http://www.adobe.com/devnet/actionscript/articles/oop_as3.html

http://www.actionscript.org/resources/articles/684/1/Object-Oriented-Programming-in-AS3/Page1.html

10. 版本控制

除非觉得代码毫无价值,否则开发者需要立刻学习一种版本控制系统并尽快应用到项目中去。

延伸阅读

http://tortoisesvn.net/downloads

http://versionsapp.com/

http://en.wikipedia.org/wiki/Revision_control

http://git-scm.com/

http://www.nongnu.org/cvs/

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics