如何将.fla文件中的符号导入到FlashDevelop中的AIR项目中? [英] How does one import symbols from a .fla file to an AIR project in FlashDevelop?

查看:198
本文介绍了如何将.fla文件中的符号导入到FlashDevelop中的AIR项目中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次使用AIR。在FlashDevelop的以前的AS3项目中,我将使用Flash Professional在与源文件相同的目录中创建.fla文件,并将我的主类链接为文档类。我使用Flash来创建符号,并将它们导出到动作脚本,然后在FlashDevelop中编写定义。这不适用于AIR。



我将.fla文件放在与我所有源文件相同的目录中。 FlashDevelop AIRMobile编译项目很好,但应用程序是白屏。在Flash Professional中使用相同的编译器编译相同的项目完美地工作,显示所有符号。



如果我正在编译,如何访问.fla文件中的符号来自FlashDevelop?

解决方案

请尝试以下操作。 ,转到您的发布设置。检查.swc文件夹以便在发布时导出一个swc(并确保导出位置在你的flash开发项目子文件夹中,一个名为'lib'的子文件夹是常用的)。另外,如果需要,请在发布设置中取消选中其他输出。


发布您的.fla。

在Flash Develop中,在项目面板目录树中找到.swc,右键单击它并选择Add to Library还需要再次右键单击并选择选项,并将其告知完全包含。



现在,您的.fla的所有符号都可用于您的FlashDevelop项目。


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?

解决方案

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.

这篇关于如何将.fla文件中的符号导入到FlashDevelop中的AIR项目中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆