本站原创文章,转载请注明: 转载自zrong's Blog,原文 [转]Flash Builder 4中构建纯ActionScript书写的AIR项目,欢迎使用文章源码进行转载。
本站转载文章会标明[转],转载请注明原始作者文章地址。
转自:http://flash.9ria.com/viewthread.php?tid=48055
下面介绍个使用Flash Builder 4构建纯ActionScript书写AIR项目的窍门。
1. 文件 > 新建 > “Flex Project”
2. 填项目名: “Foo”
3. 选择 “Desktop (runs in Adobe AIR)”
4. 按 “Finish”
5. 删除 “Foo.mxml”
6. 文件 > 新建 > ActionScript类命名为”Foo”,并使用”flash.display.Sprite”作为超类
7. 按Finish.
8. 右击”Foo.as”并选择”Set as Default Application”
9. 在Foo.as的构造函数中,写下”this.stage.nativeWindow.visible = true;”
10. 完成!


最新评论