3 Replies Latest reply on Mar 17, 2007 9:19 AM by W_Bell

    Put the Button Script in the Actions Frame

    W_Bell Level 1
      When I click each button I want it to advance the play head to the Frame Lable.
      This code works but I need to change the state of the button.
      If I change the button State to Graphic in the Key Frame Lable it makes the code not work.
      I would like to have all the code the the main timeline Actions Layer.

      ie: When Button1 is pressed it goes to "F1" and is now in the Down State.
      When Button 2 is press it goes to "F2" and is in the Down State and Button 1 goes back to its' Up State.

      Here's the code:
      Button1.onRelease = function() {
      trace ("Frame 1");
      Button2.onRelease = function() {
      trace ("Frame 2");
      Button3.onRelease = function() {
      trace ("Frame 3");