import mx.events.EventDispatcher; import mx.utils.Delegate; class TitleScreen extends MovieClip { var play_button:MovieClip; function TitleScreen() { EventDispatcher.initialize(this); play_button.onRelease = Delegate.create(this,EventClickPlayButton); } public function setLocation(x:Number,y:Number) { this._x = x; this._y = y; } function EventClickPlayButton() { this.dispatchEvent({type:"EventCloseTitleScreen"}); } public function addEventListener(){/*Interface Stub*/} public function removeEventListener(){/*Interface Stub*/} public function dispatchEvent(){/*Interface Stub*/} }