R – How to access the ‘mx’ or ‘fl’ namespaces in a Flex Builder Actionscript Project

actionscriptflexbuildernamespacesswc

How do I access the mx or fl namespaces in a Flex Builder Actionscript Project?

Do I need to include a certain .swc file?

I can't seem to find which one.

Best Answer

You can just import mx, but be aware your project will carry a ton of weight from the Flex framework. All of the l package classes are in your Flash installation folder and need to be added as a source folder in your compiler paths in FB.

If you just want to use the easing function than the solution is easier than importing any of the MX packages. When I use GTween in AS3 projects I simply cut-n-paste the functions into my own static classes.