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 // Install by copying to Fireworks/Configuration/Commands/ // Run in Fireworks via the Commands menu // Aaron Beall - http://abeall.com // Version 1.0 var dom = fw.getDocumentDOM(); // document object var sel = fw.selection; function ReverseGradients() { // require active document if (!sel.length) return false; for(var i = 0; i < sel.length; i++){ if(sel[i].pathAttributes){ if(sel[i].pathAttributes.fill){ if(sel[i].pathAttributes.fill.gradient){ var grad = sel[i].pathAttributes.fill.gradient; var nodes = [], opacityNodes = []; var n = grad.nodes.length, o = grad.opacityNodes.length; while(n--) nodes.push({color:grad.nodes[n].color,position:1-grad.nodes[n].position,isOpacityNode:false}); while(o--) opacityNodes.push({color:grad.opacityNodes[o].color,position:1-grad.opacityNodes[o].position,isOpacityNode:true}); grad.nodes = nodes; grad.opacityNodes = opacityNodes; } } } } return true; } ReverseGradients();