PDA

View Full Version : TotalFrames of a single scene



calibanter
January 29th, 2003, 08:10 PM
I'm pushing my luck here.

I know you can evaluate the total frames of an entire movie (read: swf) with _totalframes.

I know you can evaluate the total frames of an mc with instancename._totalframes.

Does anybody know how to evaluate the totalframes of a single scene within a movie?

scenename._totalframes does not seem to work

Thanks

lostinbeta
January 29th, 2003, 10:29 PM
Hmmm, I honestly never though of or tried that.



I doubt it will work but maybe this._totalframes on a frame in the scene.

senocular
January 29th, 2003, 11:04 PM
I NEVER use scenes, but I guess a solution would be, if you are in _root...

origFrame = _currentframe;
gotoAndStop("sceneWhatever", 1);
startFrame = _currentframe;
nextScene();
endFrame = _currentframe;
gotoAndStop(origFrame);

sceneFrames = endFrame - startFrame;


.. then again thats a guess.