-
Pause multiple MC's
Hi, can anyone tell me the best way to get a movie (and everything on the main timeline) to pause and then restart? This is the code i am currently using but it doesnt pause everything:
this.onEnterFrame = function() {
if (doWhat == "1") {
stopAll();
}
if (doWhat == "2") {
startAll();
}
doWhat = "0";
};
function stopAll() {
mcP.pauseTarget(myVideo);
mySound.stop();
pausePosition = mySound.position/1000
stop();
}
function startAll() {
mcP.resumeTarget(myVideo)
mySound.start(pausePosition);
};
-
Senior Member
you can keep a 'collection' of all clips that are on the stage in an 'array' and the loop through it pausing/stopping all the clips in that array..
or maybe use the movieClip protoype to do the work..
two posted solutions here: (old)
http://board.flashkit.com/board/show...ght=stop+clips
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|