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 // Ungroups and applies any styles (filters, blendmode, opacity) that were on the group to the children // Save this file in Fireworks/Configuration/Commands // Use in Fireworks via Commands > Ungroup With Effects // Aaron Beall - http://abeall.com // Version 1.1 var dom = fw.selection ? fw.getDocumentDOM() : false; // document object var sel = fw.selection ? new Array().concat(fw.selection) : new Array(); // saved selection function UngroupGracefully() { for(var s in sel){ if(sel[s] == '[object Group]'){ var group = sel[s]; for(var e in group.elements){ var elem = group.elements[e]; mergeEffectLists(elem,group.effectList); elem.opacity = Math.round(elem.opacity * (group.opacity / 100)); if(group.blendMode != "normal") elem.blendMode = group.blendMode; } } } dom.ungroup(); } //try{ UngroupGracefully(); //}catch(e){alert([e.lineNumber,e.message])} function copyEffectList(effList){ if(effList){ return {category:effList.category,effects:new Array().concat(effList.effects),name:effList.name}; }else{ return {category:"UNUSED",effects:[],name:"UNUSED"}; } } function mergeEffectLists(elem,effList){ if(!effList) return; var newEffectList = copyEffectList(elem.effectList); for(var e in effList.effects){ var eff = copyEffect(effList.effects[e]); newEffectList.effects.push(eff); } elem.effectList = newEffectList; } function copyEffect(eff){ var newEffect = new Object(); for(var i in eff){ if(i!='javascriptString') newEffect[i] = eff[i]; } return newEffect; }