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

addChild...(rotation) on 2012-8-26

Get Adobe Flash player
by Seiya.Kai 26 Aug 2012
/**
 * Copyright Seiya.Kai ( http://wonderfl.net/user/Seiya.Kai )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/jMid
 */

package
{
    import flash.display.Sprite;
    
    [SWF(width="600",height="600",backgroundColor="0x000000",frameRate="60")]
    public class Main extends Sprite
    {
        public function Main()
        {
            var circleSize:Number = 18;
            var s:Circle = new Circle(Math.random()*0xFFFFFF,circleSize);
            s.x = 150;    s.y = 300;
            addChild(s);
            
            for (var i:int = 0; i < 15; i++) 
            {
                var sc:Circle  = new Circle(Math.random()*0xFFFFFF,circleSize);
                sc.x = circleSize*2;
                s.addChild(sc);
                s = sc;
            }
        }
    }
}

import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.ui.Mouse;

class Circle extends Sprite
{
    private var angle:Number = 0;
    
    public function Circle(_color:uint,_radius:Number)
    {
        graphics.beginFill(_color,1.0);
        graphics.lineStyle(5,0x000000,0.8);
        graphics.drawCircle(0,0,_radius);
        graphics.endFill();
        blendMode = "add";
        addEventListener(Event.ENTER_FRAME,Move);
    }
    
    private function Move(e:Event):void
    {
        rotation = angle;
        angle++;
    }
}