开发者

Actionscript mobile library project

I'm developing an ActionScript 3.0 project for Blackberry Playbook, Android and iOS.

I have some custom UI classes, like buttons, that I want to us开发者_JS百科e it in another projects.

How can I make an actionscript mobile library project?

I'm using Flash Builder 4.5, and I'm not using Flex in my code.


Using Flash Builder 4.5:

  • choose File > Project > New

  • choose "library project"

  • check the "include AIR features" box.

This will compile a .swc, a binary file you can distribute easily.

Including AIR in this .swc ensures that all the mobile-oriented features will be compiled as well, i.e. TouchEvent.

Flex classes, that you're not using, won't be included.


You can create ActionScript project, then add it to your mobile project's references (as a source.) Or create Flex library and link it with mobile project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜