Creatine User Guide

Scene Events

«  Transitions Effects   ::   Contents   ::   Display Objects and Layouting  »

Scene Events

When you add or remove scenes in the director, event signals will be triggered by director to the scenes. A scene can receive 4 different events: sceneenter, scenepause, sceneresume and sceneexit, and they can be caught using:

this.on('<eventname>', this.callbackFunction);

or:

this.addEventListener('<eventname>', this.callbackFunction);

considering that both statements are inside the Scene. These functions are triggered when:

«  Transitions Effects   ::   Contents   ::   Display Objects and Layouting  »