/*package
{
import flash.display.MovieClip;
import fl.transitions.easing.*;
import carina.transitions.Tweener;

public class MyTween extends MovieClip {

public function MyTween()
{
Tweener.addTween(myMovie,{alpha:.5,
scaleX:.5, scaleY:.3,time:2,transition:Regular:EaseIn});

}

}
}
*/
package {

import flash.display.MovieClip;
import fl.transitions.easing.*;
import caurina.transitions.Tweener;

public class MyTween extends MovieClip
{

public function MyTween() {
Tweener.addTween(myMovie,{alpha:.5,
scaleX:.5,scaleY:.3,time:2,
transition:Elastic.easeIn,
onComplete:restore});


// Slide a movieclip to a new position in 0.5 seconds (AS3)
Tweener.addTween(myMovie2, {x:10, time:0.5});
Tweener.addTween(myMovie3, {x:300, time:0.95});

// Fade in on a movieclip in 2 seconds (AS3)
myMovie4.alpha = 0;
Tweener.addTween(myMovie4, {alpha:1, time:10});

// Do a transition on both _x and on _alpha
//Tweener.addTween(myMovie5, {x:150,time:10});
myMovie5.alpha = 0;
Tweener.addTween(myMovie5, {alpha:1,x:150,time:10});

// Do a tweening using other transition type
Tweener.addTween(myTextField, {x:35, y:15, time:0.7, transition:"easeInBounce"});

// Using delays to create animation sequences
Tweener.addTween(myMovie6, {x:20, time:0.5});
Tweener.addTween(myMovie6, {x:0, time:0.5, delay: 0.5});

/*
//Using tweener 'templates'
myMovie7.alpha = 0;
myMovie7.time = 0;
var fadeIn:Object = {alpha:100, time:1};
Tweener.addTween(fadeIn:"100", time:"1");
*/

// Using events to fade out then disappear (normal function)
//myMovie7.alpha = 0;
function disappear() {
this.visible = false;
};
Tweener.addTween(myMovie7, {alpha:0, time:1, onComplete:disappear});

// Using events to fade out then disappear (anonymous in-line function)
Tweener.addTween(myMovie8, {alpha:0, time:1, onComplete:function() { this.visible = false; }});
/*
// Using events to fade out then disappear (using the _autoAlpha special property)
Tweener.addTween(myMovie9, {autoAlpha:0, time:1});
*/
/*
// More complex events
fGo = function() { trace ("I'll go!"); };
fGoing = function() { trace ("I'm going!"); };
fGone = function() { trace ("I'm gone!"); };

Tweener.addTween(myMovieClip, {_alpha:0, time:1, onStart:fGo, onUpdate:fGoing, onComplete:fGone});
*/
}

private function restore():void
{
Tweener.addTween(myMovie,{alpha:1,
scaleX:1,scaleY:1,time:2,
transition:Regular.easeOut});

}

}
}

AS 3.0 BANNER CODE

//START AS3 Version
//clickTag variable needs defined below
var clickTag:String = "YOUR LINK HERE";
invBtn.addEventListener(MouseEvent.CLICK, callLink);
function callLink(e:MouseEvent):void {
var url:String = clickTag;
var request:URLRequest = new URLRequest(url);
try {
navigateToURL(request, '_blank');
} catch (e:Error) {
trace("Error occurred!");
}
}

// create a canvas_mc Sprite to use for the container of the text clips
var canvas_mc:Sprite = new Sprite();
//add it to the display list
addChild(canvas_mc);

addEventListener(MouseEvent.MOUSE_MOVE, myMouseMove);

function myMouseMove(e:MouseEvent):void {
// create new movieclip from Library
var t:MovieClip = new Bubble();
// add new movieclip to canvas_mc
canvas_mc.addChild(t);
// set x & y
t.x = e.stageX;
t.y = e.stageY;
//returns random number between 0 & 1
t.scaleX = t.scaleY = (Math.random() );
}

function removeMe(mc:MovieClip) {
//removeMovieClip(canvas_mc);
canvas_mc.removeChild(mc);

}