# TotalFrames of a single scene

**URL:** <https://forum.kirupa.com/t/totalframes-of-a-single-scene/12352>\
**Category:** flash\
**Created:** [January 30, 2003, 1:10am UTC](https://forum.kirupa.com/t/totalframes-of-a-single-scene/12352 "2003-01-30T01:10:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![calibanter](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@calibanter](https://forum.kirupa.com/u/calibanter)\
**Post date:** [January 30, 2003, 1:10am UTC](https://forum.kirupa.com/t/totalframes-of-a-single-scene/12352/1 "2003-01-30T01:10:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 30, 2003, 3:29am UTC](https://forum.kirupa.com/t/totalframes-of-a-single-scene/12352/2 "2003-01-30T03:29:06Z")

</div>

Hmmm, I honestly never though of or tried that.

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 30, 2003, 4:04am UTC](https://forum.kirupa.com/t/totalframes-of-a-single-scene/12352/3 "2003-01-30T04:04:58Z")

</div>

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.
