user1464981
user1464981

Reputation: 1

How Do I Compile Multiple Applications To Custom Locations In One ActionScript Project?

I would like to be able to debug / run my ActionScript project in Flash Builder and have it compile the multiple applications (SWFs) in the project, placing the SWFs in the locations I designate.

When I add all of my application classes to the project configuration and run the project, all SWFs are compiled and everything works. But I don't want all of the SWFs dumped into the root of my build directory.

So I right click one of the runnable classes, choose "Properties", and update the Run/Debug Settings to the location I want. Then it stops compiling that SWF.

I've used Clean and Build All to no effect.

The -o and -output parameters are no longer available in the compiler settings in Flash Builder 4.6. And I'd rather not use Ant while I'm developing.

Anybody know how to solve this issue?

Upvotes: 0

Views: 339

Answers (1)

badunk
badunk

Reputation: 4350

Do you have multiple "Main" classes in the same project? I would split them out into separate projects and set the output directory on each one.

If they share code, the shared code should be moved into its own project as an actionscript library. Projects that depend on that library need to have their properties changed. You can specify what dependencies a project has on another project through the libraries tab I believe.

Run/debug settings do not affect the directory that the project outputs to. After each of your project compiles into its specified output directory, it will then attempt to run the project in the directory you specified.

Upvotes: 1

Related Questions