2 Replies Latest reply on Sep 30, 2010 4:43 AM by srirama.83

    Allow a movie clip to only be pressed once?

    Mindwraith02

      Ive searched for tutorials but unfortunately i cant find any

       

      Im trying to make a movie clip that can be clicked once, but only once. its animation wont play if clicked a second time.

      But im having alot of trouble

      This is the code ive been trying to use, but im still new with Flash..

       

      onClipEvent(load){
      var clicked;
      clicked = false
      }

      on(press){
      if (clicked = false){
        gotoAndPlay (2);
        clicked = true;
      }

       

      Any advice? Thankyou in advance