flash_empty_mc

Out of context: Reply #9

  • Started
  • Last post
  • 9 Responses
  • aliceblue0

    This kinda works - but now the cursor is moved away from the lines being drawn.
    hmmmmmm?

    _root.createEmptyMovieClip
    ("line",1)
    line._x = 100
    line._y = 100
    line._xscale = 50
    line._yscale = 50

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

View thread