# Can I see \_totalframes on a loaded swf?

**URL:** <https://forum.kirupa.com/t/can-i-see--totalframes-on-a-loaded-swf/247078>\
**Category:** flash\
**Created:** [December 18, 2007, 10:08am UTC](https://forum.kirupa.com/t/can-i-see--totalframes-on-a-loaded-swf/247078 "2007-12-18T10:08:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gl0gg](https://avatars.discourse-cdn.com/v4/letter/g/58956e/32.png) [@gl0gg](https://forum.kirupa.com/u/gl0gg)\
**Post date:** [December 18, 2007, 10:08am UTC](https://forum.kirupa.com/t/can-i-see--totalframes-on-a-loaded-swf/247078/1 "2007-12-18T10:08:12Z")

</div>

Hey guys!

I have a program where I am supposed to first load a swf in the first frame (i will not know how long that swf is), and when that has finished playing the main program i supposed to move on to the next frame. Now my question is, can I somehow figure out how long that swf is from within my main program or will I have to put a simple \_root.gotoAndPlay(2); in the last frame of my loaded swf?

Thanks for looking!  
/Joel
