# Problem with \_totalframes

**URL:** <https://forum.kirupa.com/t/problem-with--totalframes/124010>\
**Category:** Uncategorized\
**Created:** [September 29, 2004, 9:19am UTC](https://forum.kirupa.com/t/problem-with--totalframes/124010 "2004-09-29T09:19:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![teiz77](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/teiz77/32/771_2.png) [@teiz77](https://forum.kirupa.com/u/teiz77)\
**Post date:** [September 29, 2004, 9:19am UTC](https://forum.kirupa.com/t/problem-with--totalframes/124010/1 "2004-09-29T09:19:30Z")

</div>

Hi I’m having a nasty problem with this actionscript thing. I’m loading an external mc into this empty movieclip:

```auto
this.createEmptyMovieClip("logo_mc", this.getNextHighestDepth());
logo_mc.createEmptyMovieClip("container_mc",0);
logo_mc.container_mc.loadMovie("load.swf");

```

This works perfectly, the swf is loaded and all the content is displayed correctly. But now I want to get the totalframes of this movieclip (I know there are 8 frames in the movie, but it should detect this automatically)

Do do this I tried this code:

```auto
trace(this.logo_mc.container_mc._totalframes);

```

Now Flash returns 1, while it should return 8. I know the path is correct, otherwise Flash should return undefined.  
What am I doing wrong?

Thanks in advance,  
Tijs
