我已经使用 Flex Builder (3) 作为开发 IDE 工作了相当长的一段时间,
并使用Flash CS3编译我的flp文件(我在Flex Builder中编写的所有动作脚本)。
我不使用任何 Flex 组件。符号的纯 AS3 和 FLA。
我想升级到 CS5,并且我读到有一个新的 Flash 构建器 IDE,所以我想尝试一下。但在 Flash 构建器中,我看到他们收紧了 Flex SDK 关系(这有点愚蠢,因为他们将名称从 Flex 更改为 Flash?),所以我对如何迁移我的项目有点困惑。
此外,有没有办法下载 Flash 10 编译器/SDK 或其他内容,使其从 Flash 构建器进行编译,而不是使用 Flash CS5?
多谢。
陈
I have been working for quite some time with the Flex Builder (3) as the development IDE,
and used Flash CS3 to compile my flp file (all the actionscript I wrote in the Flex Builder).
I don't use any of the Flex components. Pure AS3 and FLA for symbols.
I want to upgrade to CS5, and I read that there is a new Flash builder IDE so I thought I'll give it a try. But In the Flash builder I see that they have tighten the Flex SDK relation (which is kinda stupid since they change the name from Flex to Flash?) so I am a bit stuck with how to migrate my project.
Furthermore, is there a way to download the Flash 10 compiler/SDK or whatever to make it compile from the Flash builder, and not use Flash CS5 for it?
Thanks a lot.
Chen
发布评论
评论(1)
您可以使用 FlashBuilder IDE 创建纯 AS3 项目,而无需担心 Flex 框架。只需创建一个新的 Actionscript 项目即可。然后,您可以在 FlashBuilder 中编译项目,并严格使用 CS5 作为图形资源。
为了迁移您的项目,您只需将您的类文件夹添加到您的项目源库中。
使用 Flash CS5 导出 SWC 并将其添加到项目的库路径中。所有这些都可以通过您的项目属性访问。
从那时起,您应该能够通过使用相关类声明变量来访问项目类和符号。
编辑
简单开始,首先在FlashBuilder中新建一个Actionscript项目。
成功创建项目并对其进行测试后,您可以添加 Login.swf 中的代码。
如果您一直在使用文档类,您可以创建该类的实例并将其添加到舞台中,您也可以简单地复制主类中的代码。
如果 Login.swf 不使用任何图形资源,那么您应该可以直接使用,无需加载任何 SWC。
您还可以重构代码,以便将每个关注点封装在自己的类中。例如,如果 Login.swf 用作用户登录并加载一堆 SWF,那么创建一个 Login 类和 AssetsLoader 类可能是个好主意。
You can create pure AS3 projects with the FlashBuilder IDE without worrying about the Flex framework. Simply create a new Actionscript project. You can then compile your project in FlashBuilder and strictly use CS5 for your graphic assets.
In order to migrate your project , you only need to add your classes folder to your project source library.
With Flash CS5 , export a SWC and add it to the project's library path. All this is accessible via your project Properties.
From that point on, you should be able to access both your project classes and your symbols by declaring your variables with the relevant classes.
Edit
Start simply, first create a new Actionscript project in FlashBuilder.
http://help.adobe.com/en_US/flashbuilder/using/WS6f97d7caa66ef6eb1e63e3d11b6c4d0d21-7ff7.html
After you successfully created a project and tested it, you can then add the code from Login.swf.
If you've been using a Document Class, you could create an instance of that class and add it to the stage, you could also simply copy the code in your Main class.
If Login.swf doesn't use any graphical assets, you should be good to go, without the need to load any SWCs.
You could also refactor your code so that each concern is encapsulated within its own class. For instance, if Login.swf serves as user login and loads a bunch of SWFs, it may be a good idea to create a Login class and an AssetsLoader class.