Groups | Blog | Home
all groups > flash actionscript > september 2004 >

flash actionscript : Pause all nested clips


lpenel18
9/23/2004 10:03:30 PM
Is there a way to pause all nested movie clips without targeting each one
individually?

If not, is there a way to list all of the movieclips present at a given time
on the stage so that they could be put into an array dynamically and then
paused?

Thanks,
Leslye
_jrh_
9/23/2004 10:18:37 PM
You could try something like this:

function pauseAll(target) {
for (p in target) {
if (typeof target[p] == "movieclip") {
trace(p);
target[p].stop();
}
}
lpenel18
9/24/2004 1:39:22 PM
AddThis Social Bookmark Button