0 Replies Latest reply on Oct 9, 2007 6:16 AM by AScracker

    Help in drawing function....

    AScracker Level 1
      HI,

      am using the drawing function in my code

      find_boolean ----->is function used to check whether clip is clicked or not by using hit test.....
      currentpanel---> panel which is used to drawn...
      startDrawing()-----> is used to draw the line
      i wrote all the script in the mouse down funstion

      if (find_boolean == true ) {
      __invalidDrawingArea = false;
      currentPanel.useHandCursor = false;
      currentPanel.onDragOver = function() {
      startDrawing();
      };
      currentPanel.onDragOut = function() {
      trace("hai");
      startDrawing();
      };
      currentPanel.onPress = function()
      {
      startDrawing();
      }

      } else {
      __invalidDrawingArea = true;
      }
      }....
      // function is working fine but it producing the dotted line.........
      .........
      if am using the like this it means working fine
      if (find_boolean ) {
      __invalidDrawingArea = false;
      startDrawing();
      } else {
      __invalidDrawingArea = true;
      }
      }
      can any one hellp for ths it'll be gratefull for me

      ~~SK

      Close Windo