frame 1 to frame 50 of what timeline? the main timeline or the movieclip's timeline? or, some other timeline?
the main timeline
I found I could do this adding _root.mcname.gotoAndPlay(1) to the last frame of the main timeline
Is it the fastest way of doing this?
_root.mcname.gotoAndPlay(1) won't do what you stated you wanted. but, if it does what you want, leave it.
I wanted to manage my mc. I wanted it to play from frame 1 to frame 50 of main timeline and do repeate till next loop of the main timeline.
I put stop(); to the last frame of mc timeline.
I put _root.mcname.gotoAndPlay(1); to the last frame of main timeline.
Why will not is work?
there's nothing causing mcname to stop when your main timeline reaches frame 50 unless mcname just happens to be 50 frames in duration. if that is your situation, a stop() on the last frame of mcname is all that's needed and nothing is needed in the last frame of your main timeline.
If all animation plays just once it works without adding AS to the last frame of the main timeline.
If the animation is looping (playing several times) my mc does not appear when main timeline playing 2nd time and so on.
Hers how I do this. On your main timeline, place you nested movie clip on frame 1. Also place a stop actions on frame 1 of the main timeline. This will play your nested movie clip animation, but the timeline will not advance. At the end of the nested movie ip place "_parent.gotoAndStop(2);". Then on the main timeline, place your next animation movie clip on frame 2. Do this for as many animations as you have. On the last one, simply go back to frame 1 of the parent timeline. This will loop through all the movieclps indefinitely. If you only want it a certain number of times, you'll have to add some script for a counter.
yes, you're correct.