forked from: forked from: なんかローディング中っぽい

by uwi forked from forked from: なんかローディング中っぽい (diff: 12)
またショートコーディングもどきのようなことをしてしまった 
しかもしょぼい 
変な書き方してるので真似しちゃだめよ 
♥0 | Line 19 | Modified 2009-06-04 16:03:48 | MIT License
play

ActionScript3 source code

/**
 * Copyright uwi ( http://wonderfl.net/user/uwi )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/BnnL
 */

// forked from junki's forked from: なんかローディング中っぽい
/* 
またショートコーディングもどきのようなことをしてしまった 
しかもしょぼい 
変な書き方してるので真似しちゃだめよ 
*/ 
package { 
    import flash.display.Shape; 
    import flash.display.Sprite; 
    [SWF(width = 465, height = 465, backgroundColor = 0x000000, frameRate = 30)] 
    public class A extends Sprite { 
        public function A() { 
            var m:Shape = Shape(addChild(new Shape()));
	    var color:Array = [0xff9933, 0xffff33, 0x99ff66, 0x00ffcc, 0x66ffff, 0x3399ff, 0xcc33ff, 0xff6666];
            var sins:Array = [0, 0.7010, 1, 0.7010, 0, -0.7010, -1, -0.7010];
            m.x=m.y=232.5;
            for (var i:int = 0; i < 8; i++) { 
		m.graphics.beginFill(color[i]);
                m.graphics.drawCircle(90*sins[i],90*sins[(i + 2) & 7],10); 
                m.graphics.endFill();
            } 
            addEventListener("enterFrame",function():void{m.rotation-=20;});
        } 
    } 
}