Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2016-0-4 21:22

Class enchant.LoadingScene

Default loading scene. If you want to use your own loading animation, overwrite (don't inherit) this class. Referred from enchant.Core in default, as `new enchant.LoadingScene` etc.

Class Summary
Constructor Attributes Constructor Name and Description
 
Fields borrowed from class enchant.Group:
childNodes, firstChild, lastChild, originX, originY, rotation, scaleX, scaleY
Fields borrowed from class enchant.Node:
age, parentNode, scene, x, y

Method Summary

Methods borrowed from class enchant.Group:
addChild
insertBefore
removeChild
Methods borrowed from class enchant.Node:
moveBy
moveTo
Methods borrowed from class enchant.EventTarget:
addEventListener
clearEventListener
dispatchEvent
on
removeEventListener

Class Detail

enchant.LoadingScene()
enchant.LoadingScene = enchant.Class.create(enchant.Scene, {
    initialize: function() {
        enchant.Scene.call(this);
        this.backgroundColor = 'red';
        // ...
        this.addEventListener('progress', function(e) {
            progress = e.loaded / e.total;
        });
        this.addEventListener('enterframe', function() {
            // animation
        });
    }
});