0 Replies Latest reply on Dec 27, 2007 2:13 PM by Athos 3

    Drawing Board Q from a Flash Beginner

    Athos 3
      Good even all,

      I'm a little new to flash so please forgive my naive questions...

      I am creating a 'drawing board' using the following code and would like to make it more functional


      _root.createEmptyMovieClip("line",1);

      // 2. EVENTS
      _root.onMouseDown = function(){
      line.moveTo(_xmouse,_ymouse);
      line.lineStyle(2,0x000000,100);
      this.onMouseMove = function(){
      line.lineTo(_xmouse,_ymouse);
      updateAfterEvent();
      }
      }
      _root.onMouseUp = function(){
      this.onMouseMove = null;
      }


      1. I would to make it so that this works on a toggle (on/off) button press and not straight away.

      2. How do I constrain the proprtions of the drawing area so it only works on one part of the project?

      3. is it possible to create a resizeable circle (hollow like an ' 0 ') as a separate drawing tool so that someone can highlight a certain area on my drawing board with a button click?

      I know these might be simple but I'm only just starting out in Flash and any programing language for that matter.
      Any help or pointers would be really appreciated.

      Cheers

      Athos