Flash Builder: how to get flex project framework into ActionScript project?
If I create a new flex project with flashbuilder, these are the libraries that get included by default through the Flex SDK:
http://neo.cycovery.com/flex_problem4.gif
If I create a ActionScript project, then the Flex SDK framework with the exact same path includes much less swc files:
http://neo.cycovery.com/flex_problem5.gif
how do I get the full flex framework into an ActionScript project?
If I try to add for example aircore.swc manually, i get a
Description Resource Path Location Type
An internal build error has occurred. Right-click for more information. mvp Unknown Flex Problem
error
Erm, you can't. Flex is a framework that brings more functionality to the table, which Actionscript cannot comprehend (and if I remember correctly, you AS project will be sprite based while Flex's is UIComponent based). You can only load a Flex application in Actionscript using the Loader.
Can I ask why are you creating an Actionscript project if you want the capabilities of Flex? Why not just create a Flex project?
In Flash Builder's new Project wizard, you need to 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.
链接地址: http://www.djcxy.com/p/35432.html