4 Replies Latest reply on Sep 30, 2010 12:46 AM by Mindwraith02

    Trouble with animated buttons

    Mindwraith02

      Im new to Flash, using AS2

      Im trying to create a button that plays one animation when clicked, then another when released

      I made a new keyframe (5) in the button, with an animation in it

       

      the code ive tried is

      on(release){
          gotoAndPlay(5)
      }

       

      but rather than playing its own keyframe(5) it moves the entire scene's timeline to frame 5

      im very stuck with this, thankyou in advance for any help