actionscript 3 - Looking for a way to stop ALL movieclips -


i have project lot of symbols each playing @ times. command stop symbols playing without having add mc.stop(); every single one.

i have tried generic stop(); doesnt work know anyway this?

you have search of existing child's of container, check if that's movieclip stop time-line

for example call movieclipstopall(this) following function

function movieclipstopchilds(container:displayobjectcontainer):void {      (var i:uint = 0; < container.numchildren; i++)         if (container.getchildat(i) movieclip)             (container.getchildat(i) movieclip).stop(); } 

edit:

following function stop inner child movieclips

function movieclipstopall(container:displayobjectcontainer):void {      (var i:uint = 0; < container.numchildren; i++)         if (container.getchildat(i) movieclip) {             (container.getchildat(i) movieclip).stop();             movieclipstopall(container.getchildat(i));         } } 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -