Tutorial: install TweenMax libs ActionScript 3 with Flash IDE for beginners

About Tweenmax

In this tutorial I will show you how to include the TweenMax ActionScript 3.0 libs in Flash.
The TweenMax libs are available in ActionScript 3.0 and 2.0 developed by the GreenSock team.

This libs can help you a lot in game development.

You can easily use this libs to :

  • Move objects
  • Call functions with delay
  • Morph colors or alpha
  • Use easing : (Bounce, elastic, slow down, …)
  • Handle: timers, tweens and animations with one class.

In few words: This libs kicks ass !

Here some examples. I picked up this swf from greensock.com :

[swf:http://www.greensock.com/wp-content/uploads/custom/as/PluginExplorer/PluginExplorer_v12.swf 520 602]

Let’s start

Installation

Download the TweenMax libraries form the website : http://www.greensock.com/tweenmax/

greensock

Then unzip the file.

Open Flash and create a new ActionScript 3.0 file

flash

Then add the libraries to your file by clicking on the wrench.

as3

  1. Click on the Library path tab
  2. Click on the “+”
  3. Click on the swc icon
  4. Select the greensock.swc from the folder you just unzip.
  5. And click OK

add_tweenmax_libs

Annnnnnnnd…. It’s done!