PDA

View Full Version : Pause movie clips?



V Kyrie
April 30th, 2002, 04:17 AM
hi all, just wanted to know is there a way to pause all the movie clips except 1 in a scene. Coz i want a scene where everything is playing and when an action occurs to a movie clip, it continues playing but pauses the rest halfway through their animations.......

eyezberg
April 30th, 2002, 01:39 PM
There is a thread on this somewhere here, i bet it was / should've been moved to the "best of", try to find it there..

ilyaslamasse
April 30th, 2002, 03:21 PM
Oh, yeah it SHOULD HAVE BEEN posted there, but I don't think it was. I'll try and find it.

pom 0]

suprabeener
April 30th, 2002, 07:27 PM
one tactic is to stop everything, and then restart the movie you want to continue playing.

assuming all your movies are in _root, we can use a for in loop:


for(m in _root){

_root[m].stop();

}

_root.movieToPlay.play();
there's probably more than just movies in _root (even in a programmatic sense), and this is sending the stop method *everything* but won't really do any harm.

ilyaslamasse
April 30th, 2002, 07:51 PM
Would this still work in MX, with something like this :
for(m in _root){

_root[m].onEnterFrame = null ;

}pom 0]

ashidosan
May 10th, 2002, 06:17 PM
Have every clip check a pause flag at the root level, and set the flag when you hit the pause button.



onClipEvent(enterFrame) {

if(_root.pauseFlag==true) {

this.stop();

}

}



HOHO, talk about murder on CPU time. :evil: