SpriteSheetMovieClipBehaviour


Description

The SpriteSheetMovieClipBehaviour caches MovieClip animations into a Mesh array for fast playback.

Ideally each frame should have a similar number of sprites and must only use one texture page.


Functions

Awake

Update

Frame update handler, advances sprite sheet frame.


Variables

spriteSheetCache

Sprite sheet cache.

movieClip

Set the swf asset name.

symbolName

Set the exported symbol name to loaded from the swf asset file.

fps

Target framerate to render the MovieClip timeline.

cache

Cache the compiled Mesh data to the spriteSheetCache.

generateDefault

Generate mesh on load.

playing

Set animation play state.

loop

Set animation to loop.

spriteSheet

Active spriteSheet instance.