1 Reply Latest reply on Jul 15, 2010 10:06 AM by kglad

    Rubber effect

    vieri74

      Hi,

      with this code i create an highlighting effect on a text, everytime i click the "highlighter" button i call the function and i can work on the text:

       

      content.createEmptyMovieClip("line1",0);


      function underline() {

       

      content.onMouseDown = function() {

      content.line1.lineStyle(12,65280,50);

      content.line1.moveTo(content._xmouse,content._ymouse);

      content.onMouseMove = function() {

      content.line1.lineTo(content._xmouse,content._ymouse);

      };

      };

      content.onMouseUp = function() {

      content.onMouseMove = noLine;


      };

      }

       


      highlighter.onPress = function() {

       


       


      underline();

      this.gotoAndStop(2);


      };

       

       

      i would like to create a tool for erasing my highlighting but i can't find the way...

      Has anyone something to suggest me?

      Thanx!

      Vieri