Play/Pause Btn in AS2

Out of context: Reply #2

  • Started
  • Last post
  • 4 Responses
  • fyoucher10

    That's about as basic in interactivity as it gets, just build it out yourself.

    Here's a really easy example to understand:

    - Make two buttons and all of their states. If you're looking to just swap icons, just make them the exact same shape and lay one on top of the other.
    - Add whatever code to navigate the SWF, stop(), play(), whatever
    - Then just turn the visibility of the other button on and the current one off. This will also disable it at the same time.

    stop_btn.onRelease = function() : Void {
    stop();
    play_btn._visible = true;
    this._visible = false;
    }

    play_btn.onRelease = function() : Void {
    play();
    stop_btn._visible = true;
    this._visible = false;
    }

View thread