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

mogero

...
Get Adobe Flash player
by motikawa_rgm 01 Jul 2010
    Embed
/**
 * Copyright motikawa_rgm ( http://wonderfl.net/user/motikawa_rgm )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/LDdP
 */

package  
{
    import flash.display.Shape;
    import flash.display.Sprite;
    /**
     * ...
     */
    public class Batu extends Sprite
    {
        
        public function Batu() 
        {
            init();
        }
        private function init():void
        {
            var sh:Shape = addChild(new Shape()) as Shape;
            var r:Number = 20, // はんけー
                rad:Number = Math.PI / 180, // ラジアン
                a1:Number = 45 * rad,
                a2:Number = 135 * rad,
                a3:Number = 225 * rad,
                a4:Number = 315 * rad,
                x1:Number = 0,
                x2:Number = 0,
                x3:Number = 0,
                x4:Number = 0,
                y1:Number = 0,
                y2:Number = 0,
                y3:Number = 0,
                y4:Number = 0;
            
            sh.graphics.lineStyle(1, 0x0);
            x1 = Math.cos(a1) * r;
            y1 = Math.sin(a1) * r;
            x2 = Math.cos(a2) * r;
            y2 = Math.sin(a2) * r;
            x3 = Math.cos(a3) * r;
            y3 = Math.sin(a3) * r;
            x4 = Math.cos(a4) * r;
            y4 = Math.sin(a4) * r;
            sh.graphics.moveTo(x1, y1);
            sh.graphics.lineTo(x3, y3);
            sh.graphics.moveTo(x2, y2);
            sh.graphics.lineTo(x4, y4);
            //sh.graphics.drawCircle(0, 0, r);
            sh.x = stage.stageWidth * .5;
            sh.y = stage.stageHeight * .5;
                
        }
    public function mogero():void { } //    
    }
    
}