Global

Members


exportRoot :createjs.MovieClip

Reference of root instance.

Be careful when using multiple contents simultaneously.
In Creap.js, the variable "exportRoot" re-refers to the root instance managed by the application when the application's ticker is updated.
In other words, you can refer to exportRoot successfully on a script(ie frame script) that is handled synchronously by ticker.
However, if you refer to the variable "exportRoot" from a function that is asynchronous and not managed by the framework as follows, you will not know whether it is a reference to the expected root instance.

setTimeout(function() {
    console.log(exportRoot); // ???
), 1000);

The following code can be acquired normally from v1.1.4.

this.addEventListener("mousedown", function() {
    console.log(exportRoot); // OK
));

The same is true for the variable "stage".

Type:
Source:

stage :createjs.MovieClip

Reference of stage instance.

Type:
Source:
See:

Methods


playSound(id, loop)

Play sound.

Parameters:
Name Type Description
id string

Linkage name of sound file in createjs content.

loop number

Number of loops. If it is negative value, loop infinitely.

Source:
Returns:
Type
createjs.Sound