Tweenlite and Flex SDK

I don’t use the Flash IDE to do any of my actionscript programming so I use the free Flex SDK to compile all of my code.

The other day I was having a hard time getting TweenLite, lightweight and fast tweening engine, to work because I was trying to import the easing functions like this:

import fl.transitions.easing.*;

It turns out that all of the fl packages are specific to the Flash IDE and are not available in the Flex SDK. I’m aware that there are several workarounds to get them to work (here, for instance), but I found that the easiest way to get the easing functions to work is just to substitute the import statement above with the following:

import mx.effects.easing.*;

You will have access to almost all of the same easing functions but you’ll have to check the documentation to make sure of the proper easings.

Leave a Reply