flash on 2011-10-13

by fujiopera
♥0 | Line 17 | Modified 2011-10-13 16:59:44 | MIT License
play

ActionScript3 source code

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

    package {  
    import flash.display.Sprite;  
    import flash.geom.Point;  
      
    public class MyPoint extends Sprite {  
      
    public var pointer:Sprite;  
    public var originalMyPoint:Point;//原点、インスタンスプロパティ  
      
        public function MyPoint(_x:uint,_y:uint) {  
            pointer=new Sprite();  
            addChild(pointer);  
            originalMyPoint=new Point(_x,_y);  
            pointer.buttonMode=true;  
            pointer.graphics.beginFill(0xCCCCCC,1);  
            pointer.graphics.drawCircle(0,0,20);  
            pointer.graphics.endFill();  
            }  
        }  
    }