Exemplo n.º 1
0
 public void onMouseMove(MouseEvent e)
 {
     
     if ((e == null)||( e.buttonDown))
     {
         homography.setTransform(image,
             new Point(anchors[0].x, anchors[0].y),
             new Point(anchors[1].x, anchors[1].y),
             new Point(anchors[2].x, anchors[2].y),
             new Point(anchors[3].x, anchors[3].y)
         );
     }
 }
 public void explode(MouseEvent ev)
 {
     var p = renderer.globalToLocal(new ScriptCoreLib.ActionScript.flash.geom.Point(ev.stageX, ev.stageY));
     emitter.addAction(new Explosion(8, new Vector3D(p.x, -p.y, 50), 500));
     stage.click -= explode;
 }