开发者

FlashDevelop Compile settings

I'm using FlashDevelop (latest version) + Flex 4 SDK for some projects, and am finding it a very efficient setup so far.

However, I have a problem.

Say I create an AS3 project in FlashDevelop, and add AS3 10 classes to it (in 10 .as files), one of them being my main class which will be the principal SWF. As expected, my main class complies to main.swf. But how do I compile the other 9 classes to SWF's as well?

FD only开发者_Python百科 compiles that class which is checked as "always compile". Others are not compiled. Presently, I go the cumbersome route of selecting each file as the "Always Compile" candidate, and then changing the name of the output swf in project properties before firing the build.


FlashDevelop projects only support one compile target (i.e. the "Always Compile" document class). If you need multiple compile targets you'll need to create multiple projects or use something like an ant script. Check out this and this.


Assuming heavilyinvolved's answer wasn't it, I'm assuming you weren't trying to compile multiple files, rather have unassociated classes compile too.

If these classes were never mentioned (maybe only by string via getDefinitionByName), they won't be compiled even though they are in your project tree. Simply import the classes at the beginning of main class file and they should be compiled together with it. They need to be mentioned somewhere so the compiler knows 'ok these are a part of the project too'.


In case nobody's answered correctly, or people come from Google with the same problem; The menu option may also read "Set Document Class", so check for that.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜