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 // Opens layers and parent layers that contains currently selected elements // Install by copying to Fireworks/Configuration/Commands/ // Aaron Beall 2009 - abeall.com // Version 1.0 var dom = fw.getDocumentDOM(); var sel = new Array().concat(fw.selection); var frame = dom.currentFrameNum; function LocateLayer() { if(!sel.length) return alert("Cannot locate in layers; you have nothing selected."); var layers = dom.layers;//dom.topLayers ? dom.topLayers : dom.layers; for(var i in layers){ var disclosed = discloseLayerSelection(layers[i],i); dom.setLayerDisclosure(i,disclosed); } } //try{ LocateLayer(); //}catch(e){ alert(['error',e.lineNumber,e.message,e.description])} function discloseLayerSelection(layer,index){ var disclosed = false; var elems = layer.frames[frame].elemsandsublayers; for(var i in elems){ if(elems[i].isLayer){ if(discloseLayerSelection(elems[i])){ disclosed = true; break; } }else{ if(isSelectedElem(elems[i])){ disclosed = true; break; } } } //layer.disclosure = false; return disclosed; } function isSelectedElem(elem){ for(var i in sel){ if(sel[i].customData == elem.customData) return true; } return false; } //fw.getDocumentDOM().setLayerDisclosure(0, false);