How does one import symbols from a .fla file to an AIR project in FlashDevelop?

吃可爱长大的小学妹 提交于 2019-12-11 12:17:08

问题


This is my first time working with AIR. In previous AS3 projects in FlashDevelop, I would create a .fla file with Flash Professional in the same directory as my source files and link my main class as the document class. I used Flash to create symbols and export them for actionscript and then wrote the definitions in FlashDevelop. That isn't working with AIR.

I have the .fla file in the same directory with all of my source files. FlashDevelop AIR Mobile compiles the project fine, but the application is a white screen. Compiling the same project with the same compiler in Flash Professional works perfectly, showing all of the symbols.

How do I access the symbols in my .fla file if I am compiling from FlashDevelop?


回答1:


Try the following.

In Flash Professional, go to your publish settings. Check the .swc box to export a swc when you publish (and make sure the export location is in one of your flash develop project sub folders. A subfolder called 'lib' is common practice). Also, if desired, uncheck other outputs in your publish settings.

Publish your .fla.

In Flash Develop, find the .swc in the project panel directory tree, right click it, and choose "Add to Library" You may also need to right-click again and choose "options" and tell it to "Include completely".

Now all the symbols from your .fla are available to your FlashDevelop project.



来源:https://stackoverflow.com/questions/29338460/how-does-one-import-symbols-from-a-fla-file-to-an-air-project-in-flashdevelop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!