MouseEventExample package { import flash.display.Sprite; import flash.events.MouseEvent; public class Main extends Sprite { public function Main () { var listener:Sprite = new Sprite(); listener.graphics.beginFill(0x0000ff, 1); listener.graphics.drawRect(0, 0, 200, 200); listener.graphics.endFill();