Flash tween class sample

February 11th, 2010

Actionscript 3.0:

1
2
3
4
5
6
7
8
9
10
11
import fl.transitions.Tween;
import fl.transitions.easing.*;
 
var myTween1:Tween;
var myTween2:Tween;
var myTween3:Tween;
 
myTween1 = new Tween(rect, "x", Strong.easeOut, rect.x, rect.x + 350 , 40, false);
 
myTween2 = new Tween(rect2, "height", Strong.easeIn, rect2.height, rect2.height + 75 , 15, false);
myTween3 = new Tween(rect2, "alpha", Strong.easeIn, 0, 1, 15, false);
Bookmark and Share

One Response to “Flash tween class sample”

  1. Rupert Beilfuss Says:

    I really like this article,because i do think this will help us to make a good project on this topic.I bookmarked the site so in future i can search it for more article.

Leave a Reply