8 Replies Latest reply on Aug 8, 2007 7:22 AM by kglad

    trying to contain a drawing parameter

    kaychinn
      I am trying to contain a drawing field.

      The x left is 148.2 and the x right is 189.2
      the y top is 99.8 and the y bottom is 423.4

      I have this code so far which I want to put in an if statement:

      this.onMouseDown = function(){
      drawing_mc.lineStyle(5,myColor);
      drawing_mc.moveTo(_xmouse,_ymouse);
      onMouseMove = function(){
      drawing_mc.lineTo(_xmouse,_ymouse);
      }
      }

      I am woundering how to go about it.

      if(_x >148.3 || _x<689.2 && _y>99.8||_y<423.4){
      function here
      }

      or should I set up the drawing space before this in variables and then put it in variable format

      Please let me know where to go from here, I would appreciate any help I could get.