SceneManager exitBegin
Available since: Gideros 2020.2
Value: "exitBegin"
Defined by: SceneManager
Description
This event is dispatched on Transition Out Begin.
Example
exitBegin <syntaxhighlight lang="lua"> Level01 = Core.class(Sprite)
function Level01:init() -- LISTENERS self:addEventListener("enterBegin", self.onTransitionInBegin, self) self:addEventListener("enterEnd", self.onTransitionInEnd, self) self:addEventListener("exitBegin", self.onTransitionOutBegin, self) self:addEventListener("exitEnd", self.onTransitionOutEnd, self) end
-- GAME LOOP function Level01:onEnterFrame(e) end
-- EVENT LISTENERS function Level01:onTransitionInBegin() self:addEventListener(Event.ENTER_FRAME, self.onEnterFrame, self) end
function Level01:onTransitionInEnd() self:myKeysPressed() end
function Level01:onTransitionOutBegin() self:removeEventListener(Event.ENTER_FRAME, self.onEnterFrame, self) end
function Level01:onTransitionOutEnd() end </source>
Event properties