Strict Standards: Only variables should be passed by reference in /home/abeall/public_html/fireworks/download.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /home/abeall/public_html/fireworks/download.php:28) in /home/abeall/public_html/fireworks/download.php on line 44
// Fireworks JavaScript Command // Copy to Fireworks/Configuration/Commands/ // Aaron Beall - http://abeall.com // Version 1.1 var dom = fw.getDocumentDOM(); // document object var sel = [].concat(fw.selection); // saved selection function OpenClosePaths() { if (!sel.length) return false; var subselect = fw.activeTool == "Subselection"; var conts = [], count = 0; var s = sel.length; while(s--){ var c = sel[s].contours.length; while(c--){ if(subselect){ var nodes = sel[s].contours[c].nodes; var n = nodes.length; while(n--){ if(nodes[n].isSelectedPoint) break; } if(n < 0) continue; } conts.push(sel[s].contours[c]); sel[s].contours[c].isClosed ? count++ : count--; } } if(!conts.length) return alert("This operation produced no output; when using the Subselect tool you must select at least one point on a contour to open or close that contour -- or select the entire object using the Pointer tool to open or close all contours."); var oc = count < 0; var c = conts.length; while(c--) conts[c].isClosed = oc; return true; } //try{ OpenClosePaths(); //}catch(e){[e.lineNumber, e]};