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-8-20

Get Adobe Flash player
by hacker_3difojqr 20 Aug 2010
    Embed
/**
 * Copyright hacker_3difojqr ( http://wonderfl.net/user/hacker_3difojqr )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/6Bdx
 */

package {
    import flash.display.Sprite;
    import caurina.transitions.Tweener;
    import flash.events.Event;
    
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            stage.addEventListener(Event.ENTER_FRAME,xxx);
        }
        
        
        
           private function xxx(e:Event) {
                var i:uint;
                for (i = 0; i <10 ; i++) 
                {
                    var n = Math.random();
                    var r = Math.random()*360;
                    makeMaru(Math.cos( r * Math.PI/180)*5000,Math.sin( r * Math.PI/180)*5000,n*5,n*1000000*n);
                }
            }
            private function makeMaru(_x:Number,_y:Number,hakei:int,iro:int):void
            {
                var sprite:Sprite;
                sprite = new Sprite();
                sprite.graphics.beginFill(iro,1);
                sprite.graphics.drawCircle(0,0, hakei);
                //sprite.blendMode = BlendMode.SCREEN;
                sprite.graphics.endFill();
                sprite.alpha = 0.5;
                sprite.x = stage.mouseX;
                sprite.y =stage.mouseY;
                addChild(sprite);
                Tweener.addTween(sprite,{alpha:10,x:_x,y:_y,time:20,transition:"easeInOutQuad",onComplete:removeSp})
            }
            private function removeSp()
            {
                removeChild(getChildAt(stage.numChildren-1));
            }
        
        
        
        
    }
}