diff --git a/src/pixi/display/MovieClip.js b/src/pixi/display/MovieClip.js index 9949ed3..8a669d9 100644 --- a/src/pixi/display/MovieClip.js +++ b/src/pixi/display/MovieClip.js @@ -73,6 +73,23 @@ PIXI.MovieClip.prototype.constructor = PIXI.MovieClip; /** +* [read-only] totalFrames is the total number of frames in the MovieClip. This is the same as number of textures +* assigned to the MovieClip. +* +* @property totalFrames +* @type Number +* @default 0 +* @readOnly +*/ +Object.defineProperty( PIXI.MovieClip.prototype, 'totalFrames', { + get: function() { + + return this.textures.length; + } +}); + + +/** * Stops the MovieClip * * @method stop