5 Replies Latest reply on Feb 24, 2011 6:44 AM by Ned Murphy

    Rewrite this actionscript, mouseover

    oskarhh

      Hi guys! A while ago i had a problem with a movieclip, i wanted it to play and stop if i clicked it once, and reverse if i clicked it again.

       

      I want the same effect now, but on mouseover and mouse out.

       

      I have to layers, 'actions' where i think i should put this script, and one layer for my movieclip, the movieclip is called mc_brygghuset as you can see.

       

      Here is the script i using, can someone help me rewrite?;

       

      stop();

       

      mc_brygghuset.onRelease=function(){

      if(this.back){

      this.onEnterFrame=function(){

      this.prevFrame();

      if(this._currentframe==1){

      delete this.onEnterFrame;

      }

      }

      } else {

      this.play();

      delete this.onEnterFrame;

      }

      this.back=!this.back;

      }

      Regards
      Oskar