Creating Mouse Interactions : MouseEvent : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » MouseEvent »

 

Creating Mouse Interactions


 
package {
  import flash.display.Sprite;
  import flash.events.*;
  import flash.geom.Point;

  public class Main extends Sprite {
    public function Main(  ) {
      var circle:Sprite = new Sprite(  );
      circle.x = 10;
      circle.y = 10;
      circle.graphics.beginFill0xFF0000 );
      circle.graphics.drawCircle00);
      circle.graphics.endFill(  );
      
      circle.addEventListenerMouseEvent.MOUSE_MOVE, handleMouseMove );

      addChildcircle );
    }
    
    private function handleMouseMoveevent:MouseEvent ):void {
      trace"mouse move" );
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» MouseEvent