Visited

Out of context: Reply #7

  • Started
  • Last post
  • 9 Responses
  • Bluejam0

    Not you again! (joke)

    Put the 'button' into a movieclip, for example's sake name it 'buttonMovieClip'.

    Now you can add actionscript to the button and reference the movie clip it's in. If you wanted to make the button 50% opacity as it's visited state you'd add this code to the button.

    on (release) {
    setProperty ("_root.buttonMovieClip", _alpha, 50);
    }

    If you want a change in colour, inside the movie clip add two frames, both with the button in. The first frame will be the on state of the button, the second, the visited state. Add a 'gotoAndStop' action on the button in the first frame to go to the second frame, the visited state.

    Hope that helps

View thread