Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
//stop the main timeline (stage)
stop();
//stop the timeline of the loaded SWF
container.stop();
function getAllMc(mc) {
for (var i in mc) {
if (typeof mc[i] == "movieclip") {
mc[i].stop();
getAllMc(mc[i]);
}
}
}
getAllMc(_level0);
//ActionScript 2
function stopMCs(state:Boolean, mc:MovieClip):Void {
if(!mc){ return false; }
for (var i in mc) {
if (typeof mc[i] === "movieclip") {
if(state){
mc[i].stop();
} else {
mc[i].play();
}
stopMCs(state, mc[i]);
}
}
}
//stops all nested MCs in SWF
stopMCs(true, _root);
//plays all nested MCs in SWF
stopMCs(false, _root);
//stops all nested MCs in movieclip named "container"
stopMCs(true, container);
1 to 6 of 6