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 2011 - http://abeall.com // Version 1.1 var dom = fw.getDocumentDOM(); // document object var sel = new Array().concat(fw.selection); // saved selection function HoldPaths() { if (!sel.length) return false; var origPaths = []; for (s in sel) if (sel[s] == '[object Path]' ) origPaths.push(sel[s]); if (!origPaths.length) return false; fw.selection = origPaths; for(var i = 0; i < origPaths.length; i++){ var path = origPaths[i]; path.customData.holdPath_contours = new Array(path.contours.length); for(var c = 0; c < path.contours.length; c++){ path.customData.holdPath_contours[c] = {}; path.customData.holdPath_contours[c].isClosed = path.contours[c].isClosed; path.customData.holdPath_contours[c].nodes = new Array(path.contours[c].nodes.length); for(var n = 0; n < path.contours[c].nodes.length; n++) path.customData.holdPath_contours[c].nodes[n] = copyObject(path.contours[c].nodes[n]); } path.customData.holdPath_pathAttrs = copyObject(path.pathAttributes); } return true; } //try{ HoldPaths(); //}catch(e){[e.lineNumber, e, e.fileName]} // fast deep copy method function copyObject(inObject){ if (typeof inObject == "object" && inObject !== null) { return eval("(" + inObject.toSource() + ")"); } else { return inObject; } }