pausing a flash loop

  • Started
  • Last post
  • 1 Response
  • ganon

    i amhaving trouble pausing and restarting a loop in my .swf...it starts to play, but wont pause...here is my code...:

    //_root, first frame:
    _root.createEmptyMovieClip ("loop01Mc",1);
    loop01=new Sound(loop01Mc);
    loop01.attachSound("loop_one");
    loop01Volume=15;
    loop01Volume2=5;
    loop01.setVolume(loop01Volume);

    //frame 5
    _root.loop01.start(loop01Positio...

    //on a pause button, in a MC (exit) on the stage
    on (rollOver) {
    this.gotoAndStop (7);
    loop01Position=_root.loop01.posi...
    _root.loop01.stop("loop_one");
    }

    //then on to start it again
    _root.loop01.start(loop01Positio...

    whats my problem?..thanks....

  • ganon0

    this is what i have now, still doesnt work...:

    //first frame root
    loop01Position=loop01.position/1...
    _root.createEmptyMovieClip ("loop01Mc",1);
    loop01=new Sound(loop01Mc);
    loop01.attachSound("loop_one");
    loop01Volume=15;
    loop01Volume2=5;
    loop01.setVolume(loop01Volume);

    //frame 5 root
    _root.loop01.start(_root.loop01P...

    //actions on button, which is in a MC (exit) on the stage
    on (release) {
    fscommand ("quit");
    _root.loop01.stop("loop_one");
    _root.loop01Position=0;
    }

    on (rollOver) {
    this.gotoAndStop (7);
    _root.loop01.stop("loop_one");
    }

    on (rollOut, dragOut) {
    this.gotoAndStop (6);
    _root.loop01.start(_root.loop01P...
    }

    thank you....