totalFrames of a MovieClip
Hi, everyone.
Recently I got trouble with totalFrames attribute of MovieClip object, this is the case: in Flash CS, I created two movieclips, one has say 10 frames animation, another one, I drag the first MC in to it, then the second MC has only one frame in it's own time line, right? Then I export them as SWC file to include them in my project. Here's the problem, when I'm trying to get total frame number of these to MC like below, I just get to actual number of frames in the second MC:
trace( new FirstMC().totalFrames ); //10 frames in the first MC
trace( new SecondMC().totalFrames ); //1 ![]()
So my question is, is there any way to get the actual number of frame for those MovieClip resource like the second one, without visiting any sub-movieclips in it, Thank you for any sugestions.
