ActionScript 3.0 – Draw Line

View File  |  Download Source Files 

In AS 3.0, to draw a line that continually changes, add the following code in an ENTER_FRAME:

    //remove graphic to remove previously drawn line each time;
//define line width in pixels;
//move the drawing pen.  Mace X and Y are dynamic positions, mace.y);
//draw lines from the start (above) to the mouse position, mouseY);