PDA

View Full Version : Stopping MovieClips contained in MovieClips


Cyp1329
02-02-2007, 02:04 PM
Hello,
I am having the following problem, I am creating a simple game in order to learn some flash. In this game I have a movie clip, lets call it Sprite1. This movie clip contains a number of frames each containing a movieclip representing one of the sprites animations. My problem is when I want to stop the animation of Sprite1, if i call Sprite1.stop() it will just loop the MovieClip in the current frame, is there a way to stop this animation completly?
Thanks in advance
Cyp

iknow
02-02-2007, 06:53 PM
You need an instance name for the mc inside sprite1, let's call it sprite1_1.

Sprite1.sprite1_1.stop()

Cyp1329
02-02-2007, 08:34 PM
thanks alot iknow, however, is there a way to reference the current mc thats playing inside sprite1 since I can never be sure which animation is going to be playing when the game action terminates (which is when i need to do this). I wnat to try and avoid stopping all the animations plus it's a good thing to know hehe.
Thanks in advance
cyp