composer.*

Overview

Composer is the official scene (screen) creation and management library in Corona. This library provides developers with an easy way to create and transition between individual scenes.

The primary object in the Composer library is the scene object. This is an event listener that responds to specific events, and it contains a unique self.view property which is a reference to the display group associated with the scene. This self.view is where you should insert visual elements pertaining to the scene.

See the Scene Template section below for an example of how a scene file might be structured. For more information on scene events, including names and dispatch order, see the scene events documentation.

Properties

Scene Template

The following template can be used to create new scene files. Note that this template includes listener functions for all potential events in the scene, but you only need to include listeners for the events that you want to handle.