Имеется такой код
Код AS3:
package
{
import flash.display.*;
import flash.events.*;
public class EventPhasesDispatch extends Sprite
{
public function EventPhasesDispatch():void
{
// Create theSprite
var theSprite:Sprite = new Sprite();
theSprite.graphics.lineStyle(1);
theSprite.graphics.beginFill(0x0000FF, 1);
theSprite.graphics.drawRect(0, 0, 50, 50);
theSprite.x = 320;
theSprite.y = 240;
// Create theSprite2
var theSprite2:Sprite = new Sprite();
theSprite2.graphics.lineStyle(1);
theSprite2.graphics.beginFill(0x00FF00, 1);
theSprite2.graphics.drawRect(0, 0, 25, 25);
theSprite.addChild(theSprite2);
stage.addChild(theSprite);
theSprite.stage.addEventListener(MouseEvent.CLICK, mouseClickListener, false);
}
private function mouseClickListener(e:MouseEvent):void
{
trace("Click");
}
}
}
Почему, когда в слушателе событий третий параметр стоит в
true, щелкая по стейджу, в Output не выводится сообщение ?