Problem with _totalframes

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

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:

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

Does it play all 8 frames? If it does then your code is processing too quickly and the 8 frames won’t register in time for the trace. I believe that’s it.

no… that’s not it… I also tried it with 600 frames. The frames do play, but the totalframes function still returns 1

can you post your files?

Hi… I solved the problem, well solved… not really. Flash can only read the amount of frames in the path specified. The root of the movie has only one frame. I embeded a movieclip in this movies with more frames. Flash can not extract the total amount of frames of a movie clip (including embeded movie clips)… :td: