Results 1 to 2 of 2

Thread: Button Override

  1. #1
    Join Date
    Dec 2007
    Location
    Mississauga
    Posts
    166
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default Button Override

    I have a timeline with something like 3 or 4 stop commands and each stop command has a movie clip, so for example frame one has a stop command and an MC that plays a line going across screen, the last frame of the animation has this code
    Code:
    stop();
    _parent.gotoAndPlay("frame02");
    This goes on for about 4 frames then the main timeline takes over.

    I want to throw a skip button in that jumps to the last frame on the main timeline, problem is if the skip button is hit within the first 4 frames with the stop commands, the animation does skip to the last frame but due to the mc still running that tells it to play lets say "frame03" the animation jumps backwards and continues to play from frame 3.

    I am lost on how to stop this.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Stop the animating moviclip with the onRelease.

    Code:
    skipBtn.onRelease = function() {
       animating_movieclip.stop();
       gotoAndPlay("frame04");
    }

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •