to Macromedia Flash MX Drawing Methods , and made many trial ,
while still cannot write a program acts exactly the same as line
tool, which hook on a point while the user make a 1st press, and
have the line dragging while the mouse moving !
the code attached is what i can do ! should the setinterval (
) be used ? thank you !!
try the attached code.
onMouseMove is fine, I would keep that. An interval may miss
some mouse moves, which may look strange.
The trick here is that you have to clear the drawn line every
time the mouse moves. If you call the clear() method, the lineStyle
and drawing position is cleared as well, so it must be set again