if (_root.isactive=="circle"){
_root.createEmptyMovieClip("ellipsetracker",2) ;
_root.ellipsetracker.lineStyle(1,_root.currentcolor,100) ;
_root.ellipsetracker.moveTo(_root.linex,(_root._ymouse+_root.liney)/2) ;
_root.ellipsetracker.curveTo(_root.linex, _root.liney,(_root._xmouse+_root.linex)/2,_root.liney ) ;
_root.ellipsetracker.curveTo(_root._xmouse, _root.liney,_root._xmouse, (_root._ymouse+_root.liney)/2 ) ;
_root.ellipsetracker.curveTo(_root._xmouse,_root._ymouse,(_root._xmouse+_root.linex)/2,_root._ymouse) ;
_root.ellipsetracker.curveTo(_root.linex, _root._ymouse, _root.linex,(_root.liney+_root._ymouse)/2 ) ;
}
This is placed inside the same onClipEvent (mouseMove) that contains the movement behavior for the brush tool and the line tool; the script checks to make sure that the value of _root.isactive is set to circle and then performs the actions set inside.
The format of curveTo is similar to that of lineTo, in that the size, color, and opacity of the curve drawn are set using lineStyle and the starting point must be set using moveTo. The rest, however, probably looks like Greek, so lets dissect it.


