编译AS3项目中flashbuilder SWC文件 [英] Compiling as3 project to swc file in flashbuilder

查看:728
本文介绍了编译AS3项目中flashbuilder SWC文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我希望能在这里找到答案,

i have a question and i'm hoping to find an answer here,

我创建了一个包含一些班级,我经常使用的功能flashbuilder项目, 我身边有6个班,才有可能编译这些类SWC文件,所以我只需要添加的SWC在一个新的项目来访问它们?

i created a flashbuilder project that contains some classes with functions that i use often, i have around 6 classes, would it be possible to compile these classes to a swc file so i just have to add the swc in a new project to access them?

或者不是它可以创建SWC同flashbuilder? 也许我可以做到这一点闪光灯,但是不要有任何想法如何编译多个类为1 SWC。文件。

Or isnt it possible to create swc's with flashbuilder? Maybe i could do it in flash but dont have any idea how to compile multiple classes into 1 swc. file.

抱歉,如果这是一个愚蠢的问题,但在此之前我从来没有使用过它,无法找到太多的是。

Sorry if this is a stupid question but ive never used it before and couldnt find much about is.

推荐答案

里面FlashBuilder创建一个新的Flex库项目。

Inside FlashBuilder create a new "Flex Library Project".

它会带你通过一个新的项目向导,类似于ActionScript项目。一旦创建,您可以将您的.AS类的源文件夹。只要项目 - >自动构建被选中,它会自动在您指定的输出文件夹,通​​常是(/ bin)中创建(和更新)SWC文件。

It will take you through a new project wizard that is similar to an Actionscript Project. Once it is created, you can add your .AS classes to the source folder. As long as Project->Build Automatically is checked, it will automatically create (and update) a SWC file in your designated output folder, usually (/bin).

如果你想挑选特定类别或包括外部库,主权财富基金,或其他的SWC,选择项目 - >属性 - > Flex库构建路径有一个标签叫类在这里你可以选择你想要的类别导出到SWC。

If you want to pick and choose particular classes or include external libraries, SWFs, or other SWCs, select Project->Properties->Flex Library Build Path there is a tab called "Classes" where you can select which classes you want exported into the SWC.

这篇关于编译AS3项目中flashbuilder SWC文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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