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 // Creates slices based on all guides // Install by copying to Fireworks/Configuration/Commands/ // Run in Fireworks via the Commands menu // Aaron Beall 2008 - fireworks.abeall.com var dom = fw.selection ? fw.getDocumentDOM() : false; // document object var sel = new Array().concat(fw.selection); function GuidesToSlices() { // require active document if (!dom) return false; // validate guides var vGuides = [].concat(dom.guides.vGuides), hGuides = [].concat(dom.guides.hGuides); if(!vGuides.length && !hGuides.length) return alert('You need at least one vertical guide or one horizontal guide.'); // sort guides vGuides.sort(function(a,b){return Number(a)-Number(b)}); hGuides.sort(function(a,b){return Number(a)-Number(b)}); // slice by guides var bb; for(var h=-1; h