In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

HelloAnimation

Get Adobe Flash player
by turipat 27 May 2009
/**
 * Copyright turipat ( http://wonderfl.net/user/turipat )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/nTeE
 */

package {
  import flash.display.*;
  import fl.transitions.Tween;
  import fl.transitions.easing.*;

    public class HelloAnimation extends MovieClip {
        public function HelloAnimation() {
		var mc = new Sprite();
		mc.graphics.beginFill(0xFF0000);
		mc.graphics.drawCircle(0, 50, 50);
		var mc2 = new Sprite();
		mc2.graphics.beginFill(0x0000FF);
		mc2.graphics.drawCircle(0, 150, 50);
                this.addChild(mc);
                this.addChild(mc2);
                var tw = new Tween(mc, "x", Elastic.easeOut, 0, 300, 3, true);
                var tw2 = new Tween(mc2, "x", Elastic.easeOut, 0, 300, 3, true);
                }
        
    }
}