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 // Selects all elements on the current layer as well as all elements on all sublayers, recursively // Install to Fireworks/Configuration/Commands/ // Aaron Beall - http://abeall.com // version 1.0 var dom = fw.getDocumentDOM(); // document object var sel = new Array().concat(fw.selection); // saved selection function SelectSublayers() { var layer = dom.layers[dom.currentLayerNum]; fw.selection = selectLayer(layer); } function selectLayer(layer){ var elems = layer.frames[dom.currentFrameNum].elemsandsublayers; var sel = []; for(var i in elems){ if(elems[i].isLayer){ sel = sel.concat(selectLayer(elems[i])); }else{ sel.push(elems[i]); } } return sel; return []; } //try{ SelectSublayers(); //catch(e){ alert([e.lineNumber, e.message]) }