English 中文(简体)
从AS2迁移到AS3
原标题:Migrating from AS2 to AS3

我想知道谁已经这样做了, 任何建议和事情,我必须特别看一看, 我见过一些与这个专题有关的文章, 谷歌,等等...

但我想听听 山花之花的忠告

我已经在 c++ 中知道以对象为导向的编程, 使用课程等等, 但我无法非常理解 AS3 软件包之类的东西, 但我非常熟悉 AS2 。

谢谢 谢谢

最佳回答
  1. Drop everything you know, start fresh. AS2 is different than AS3. Don t try to do the AS2 thing with AS3.
  2. Read & Learn the Adobe LiveDocs
  3. Learn how the display list works.
  4. Learn AS3 coding standards, write clean readable code
  5. Learn how to use common actionscript libraries, TweenLite, Gaia framework, RobotLegs, Temple Library, Pure MVC, Away3D, as3corelib etc.
  6. Never ever code inside the Flash IDE actionspanel, there are really nice actionscript editors like FlashDevelop, FDT, FlashBuilder, IntelliJ.
问题回答

我从AS2到AS3的迁移经验 一直相当顺利, 如此顺利,我永远不会回去 静静地思考 维持旧的AS2代码。

首先,我要熟悉显示列表,这里是一个很好的,http://www.adobe.com/devnet/flash/flash/quickstart/display_list_programming_as3.html>,rel=“nofollow” >article 。

然后我就会了解AS3中的新类型, 特别是数字、英特和英特之间的差别, 因为你不再需要把所有东西都拼成数字了。

对事件系统进行一些读取, 以及如何捕捉从其它对象中泡沫化的事件, 如何使用捕捉并阻止它们进一步传播, 以及如何避免在您创建的按钮中不必要地点击嵌套对象 。

就像你说你已经认识OOP 所以我建议尽可能限制时间代码 把所有东西都写在课堂上

XML 使用 e4x 处理,使 xml 解析变得微不足道, 与 AS2 相比, 您会发现这是一个微风可以工作 。

绘图 api 现在包含在一个可以通过许多显示对象访问的图形库中。

了解一个良好的框架,我强烈建议

最后是动画 - 只能有一个图书馆 - < a href=> "http://www.greensock.com/tweenmax/" rel=“nofollow” > Greensock TweenMax AS3当然;

<强 > EDIT:

我四处寻找一些资源, 我认为你们会感兴趣, 我根据我的经验和我认为是关键研究领域, 来做出这些选择:

"http://gskinner.com/talks/as3workshop/" rel="nofollow" > 由Grant Skinner 撰写的关于AS3的讲稿 - 精辟的概览,您可以反复提及。

开始行动3.0 - 使用 AS3 和 Flash CS3 的综合办法。

"http://www.kirupa.com/forum/showthread.php?223798-ActionScript-3-Tip-of-day" rel=“nofollow” -因为您已经在AS2中编码了,所以您应该了解许多这些提示以及它们在AS3中的不同之处。





相关问题
Disable button tooltip in AS3

I want to disable the tooltip on certain buttons. The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons?

Sorting twodimensional Array in AS3

So, i have a two-dimensional Array of ID s and vote count - voteArray[i][0] = ID, voteArray[i][1] = vote count I want the top 3 voted items to be displayed in different colors, so i have a 2nd Array -...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

AS3 try/catch out of memory

I m loading a few huge images on my flex/as3 app, but I can t manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont ...

Red5 Security Tutorial

I am looking for a step by step tutorial on securing Red5 from intrusion. This seems to be a question that comes up alot in a google search, but is never really answered in a way that makes sense to ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

visible property of DisplayObject

For example I have a hierarchy of movie clips. mc1 is a child of mc, and mc2 is a child of mc1. Turns out that when I set mc1.visible = false; mc2.visible stays true. Is that supposed to happen?...

热门标签