function configureTool() { theTool = fl.tools.activeTool; theTool.setToolName("Dots Spiral Tool"); theTool.setIcon("dots_spiral.png"); theTool.setMenuString("Dots Spiral Tool"); theTool.setToolTip("Dots Spiral Tool"); theTool.setOptionsFile( "dots_spiral.xml" ); }; //---------------------- function fixdots (cx,cy) { pt = new Array(); for (k=0; k<=circles; k++) { for (i=0; i-200) && (pt[i].y-200)){ fl.getDocumentDOM().addNewLine({x:pt[i-1].x, y:pt[i-1].y},{x:pt[i].x, y:pt[i].y}); }else{ break; } } }