PDA

View Full Version : Simple draw effect


FTStudiosJoe
10-20-2005, 11:52 PM
Ok, so I want a small black fill to reapear everywhere the mouse moves if it is being held down. But I don't want it to dissapear, and I want it to stil make a line if you move the mouse quickly, instead of making the line spaced out, how do I do this??

MichaelxxOA
10-21-2005, 08:23 AM
_root.lineStyle(0, 0x0, 100);
_root.onMouseDown = function() {
_root.moveTo(_xmouse, _ymouse);
this.onMouseMove = function() {
_root.lineTo(_xmouse, _ymouse);
updateAfterEvent();
}
}
_root.onMouseUp = function() {
delete this.onMouseMove;
}

I think that is what you are talking about... Take Care.

-Michael