Class: Scene

Scene

Extends the PIXI.Application class to provide easy loading.

const scene = new PIXI.animate.Scene();
scene.load(lib.StageName);

new Scene ()

Extends

  • Application

Members

instance MovieClip

The stage object created.

Default Value:
  • undefined

sound EventEmitter readonly

Reference to the global sound object

Methods

destroy (removeView, stageOptions) void

Destroy and don't use after calling.

Name Type Attributes Description
removeView boolean <optional>

Automatically remove canvas from DOM.

stageOptions IDestroyOptions | boolean <optional>

Options parameter. A boolean will act as if all options have been set to that value

load (asset, complete, basePath) void

Load a stage scene and add it to the stage.

Name Type Attributes Description
asset AnimateAsset

Reference to the scene to load.

complete (instance: MovieClip) => void <optional>

Callback when finished loading.

basePath string <optional>

Optional base directory to prepend to assets.