Why do I have to manually add Flex libraries in ActionScript Project

329 Views Asked by At

When I create a new ActionScript project in Flash Builder, I have to add standard Flex SDK libraries manually one by one even though I have already included Flex SDK library. Am I missing some setting, so that compiler is not finding all the SWCs already present in Flex SDK library?

2

There are 2 best solutions below

0
On BEST ANSWER

In Flash Builder's new Project wizard, you can create a new "Flex Project" and then select "Desktop" as the application type. In next screen, it asks for default main class, just specify your main .as (ActionScript) class file here. This way you won't have to write any MXML code and all the libraries of standard Flex library will be implicitly available for the project files.

2
On

Create a new Flex project instead of an Actionscript project.

On the File menu, choose "New > Other", then expand Flash Builder and choose "Flex Project"

The Flex SDK will be included automatically.