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

flash on 2010-2-22

Get Adobe Flash player
by arumajirou 22 Feb 2010
    Embed
/**
 * Copyright arumajirou ( http://wonderfl.net/user/arumajirou )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/unHH
 */

package {
    import flash.display.Sprite;
    import flash.display.Graphics;
    import mx.effects.*;
    import mx.effects.easing.*;
    import flash.filters.GlowFilter;
    public class FlashTest extends Sprite {
    	
    public var test : Sprite;
    public var tt : Tween;
    public var ff : GlowFilter;
    
        public function FlashTest() {
            // write as3 code here..
            
            test = new Sprite();
            const g : Graphics = test.graphics;
            g.clear();
            g.lineStyle( 1, 0x1 );
            g.beginFill( 0xff00ff );
            g.drawCircle( 0, 0, 20 );
            test.y = stage.stageHeight / 2;
            addChild( test );
            ff = new GlowFilter(0x33ccff, 1.0, 35, 35, 16, 1, false, false);
            test.filters = new Array( ff );
//            test.filters.push( ff );
            tt = new Tween( test, 30, 400, 1000, -1, update );
//            tt = new Tween( test, 0, 1, 1000, -1, update );
            tt.easingFunction = Sine.easeInOut;
        }
    
	    public function update( v : int ) : void
	    {
	    		test.x = Number(v);
	    		ff.blurX = v;
	    		test.filters = new Array( ff );
	    }
	    
    }
}