override public function onRegister():void{
Laya.init(600,600,WebGL);
Laya.stage.alignH=Stage.ALIGN_MIDDLE;
Laya.stage.alignV=Stage.ALIGN_TOP;
var sp:Sprite=new Sprite();
sp.width=100;
sp.height=100;
sp.graphics.drawRect(0,0,100,100,"#ff0000");
sp.on(Event.MOUSE_OVER,this,onMouse);
sp.on(Event.MOUSE_OUT,this,onMouse);
Laya.stage.addChild(sp);
Stat.show();
}
private function onMouse(event:Event):void{
trace(event.type);
}