if (_root.isactive=="line") {
_root.drawing.lineTo(_root._xmouse,_root._ymouse) ;
_root.linetracker.clear() ;
}
This reverts back to the movie clip drawing that we first set up to hold all of our painted shapes, and tells Flash that when the user finally lets go of the mouse, to fill in a line from that preset starting point to the current x and y coordinates of the mouse this time on the drawing movie clip, with attributes already defined by the default lineStyle command used on mouseDown (with the opacity, color, and size reflecting current user selections).
But weve added on something completely different: _root.linetracker.clear() ;. You can already figure out what this does; it clears the movie clip that its assigned to of everything drawn on-stage since the movie loaded. This doesnt work for things that were already created on-stage before the movie was published, however. All it does is remove the tracker that wed created so that there wouldnt be double lines overlapping.


