if (_root.isactive=="rectangle"){
_root.drawing.lineStyle(0,_root.currentcolor,0) ;
_root.drawing.beginFill(_root.currentcolor,_root.base.opac) ;
_root.drawing.lineTo(_root.linex,_root._ymouse) ;
_root.drawing.lineTo(_root.linex,_root.liney) ;
_root.drawing.lineTo(_root._xmouse,_root.liney) ;
_root.drawing.lineTo(_root._xmouse,_root._ymouse) ;
_root.drawing.lineTo(_root.linex,_root._ymouse) ;
_root.drawing.endFill() ;
_root.rectracker.clear() ;
}
clear() clears out the rectangular tracker we'd used while the mouse was moving, while just as with the Oval Tool, beginFill() and endFill() fill in the rectangular with a solid color and opacity reflecting the current user settings.


