dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Pause multiple MC's

  1. #1
    Senior Member
    Join Date
    Dec 2000
    Posts
    147

    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);
    };
    mileso

  2. #2
    Moderator whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center