if (_root.isactive=="rectangle"){
_root.createEmptyMovieClip ("rectracker",2) ;
_root.rectracker.moveTo(_root.linex,_root.liney) ;
_root.rectracker.lineStyle(1,_root.currentcolor,100) ;
_root.rectracker.lineTo(_root.linex,_root._ymouse) ;
_root.rectracker.lineTo(_root.linex,_root.liney) ;
_root.rectracker.lineTo(_root._xmouse,_root.liney) ;
_root.rectracker.lineTo(_root._xmouse,_root._ymouse) ;
_root.rectracker.lineTo(_root.linex,_root._ymouse) ;
}
This is another "tracker": an outline that disappears once the mouse is released, just letting the user see the size and shape on a new movie clip called rectracker. This uses lineTo like the Line Tool, but like the Oval Tool it connects those lines to create a closed shape by starting at one point and the connecting the four points between the starting point and the ending position of the mouse to create a closed rectangle.


