I have a movieclip which is a character in a game. Inside this movieclips there are several movieclips containing limbs that has an animation. So do anyone have a suggestion
If i understand you correctly (ie: stop all movieclips within another movieclip), this should work:
function stopAllClips(mc:MovieClip):void
{
var n:int = mc.numChildren;
for (var i:int=0;i
Just call it like so:
stopAllClips(yourMovieClip);
Where yourMovieClip is the character.
As of Flash Player 11.8 / AIR 3.8, there is a built in method for all DisplayObjectContainers called stopAllMovieClips.
commonParent.stopAllMovieClips();
Keep in mind, this will recursively stop all children and grandchildren, unlike the the original answer which only stops the immediate children.