Animation.getNumFrames

From Spheriki

Jump to: navigation, search

Get the number of frames this animation consists of.


Contents

Usage

number Animation.getNumFrames();


Examples

var anim = LoadAnimation("animationfile.fli");  //Autodesk FLI animation file
var frames = anim.getNumFrames();


Notes

API.txt states this won't work on MNG animations, and return 0 instead. Does this still hold true with Sphere 1.5 and above?


See also

Personal tools