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 // Adds web safe guide rectangles to show where the fold is on 800x600 and 1024x768 screens // Install by copying to Fireworks/Configuration/Commands/ // Run in Fireworks via the Commands menu var dom = fw.selection ? fw.getDocumentDOM() : false; // document object var sel = new Array().concat(fw.selection); function AddWebGuides() { // require active document if (!dom) return false; // find if Web Guides already exist var i = dom.layers.length, webGuidesExist = false, webGuidesLayerNum; while(i--) { if(dom.layers[i].name.substr(0,10) == "Web Guides") { webGuidesExist = true; webGuidesLayerNum = i; break; } } // if Web Guides already exist, simply make sure they are visible if(webGuidesExist){ dom.setLayerVisible(webGuidesLayerNum,-1,true,false); return false; } // if they don't exist, create a new layer on top of all other normal layers var oldLayerNum = dom.currentLayerNum; dom.addNewLayer('Web Guides',true); dom.reorderLayer(-1,dom.layers.length-1,false); //create the fold marks (two horizontal dotted red stroke lines) dom.addNewLine({x:0.5, y:dom.top+409.5}, {x:dom.left+dom.width+.5, y:dom.top+409.5}); fw.selection[0].name = "800x600 fold"; dom.addNewLine({x:dom.left+.5, y:dom.top+577.5}, {x:dom.left+dom.width+.5, y:dom.top+577.5}); fw.selection[0].name = "1024x768 fold"; var elems = dom.frames[dom.currentFrameNum].layers[dom.currentLayerNum].elements; fw.selection = [elems[0],elems[1]]; dom.setFill(null); dom.setBrushNColor({ alphaRemap:"none", angle:0, antiAliased:true, aspect:100, blackness:0, category:"bc_Dashed", concentration:100, dashOffSize1:0, dashOffSize2:0, dashOffSize3:0, dashOnSize1:0, dashOnSize2:0, dashOnSize3:0, diameter:1, feedback:"brush", flowRate:0, maxCount:14, minSize:1, name:"bn_Dotted", numDashes:0, shape:"circle", softenMode:"bell curve", softness:50, spacing:200, textureBlend:0, textureEdge:0, tipColoringMode:"random", tipCount:1, tipSpacing:0, tipSpacingMode:"random", type:"natural" }, "#ff0000"); dom.setOpacity(50); // create the screen templates(2 red stroked rectangles) fw.selection = []; dom.addNewRectanglePrimitive({left:0, top:0, right:750, bottom:410}, 0); fw.selection[0].name = "800x600 [750x410]"; dom.addNewRectanglePrimitive({left:0, top:0, right:970, bottom:578}, 0); fw.selection[0].name = "1024x768 [970x578]"; //dom.selectAllOnLayer(dom.currentLayerNum,false,false); var elems = dom.frames[dom.currentFrameNum].layers[dom.currentLayerNum].elements; fw.selection = [elems[0],elems[1]]; dom.align('center vertical',true); dom.align('top',true); dom.setFill(null); dom.setBrushNColor({ alphaRemap:"none", angle:0, antiAliased:false, aspect:100, blackness:0, category:"bc_Basic", concentration:100, dashOffSize1:2, dashOffSize2:2, dashOffSize3:2, dashOnSize1:10, dashOnSize2:1, dashOnSize3:1, diameter:1, feedback:"none", flowRate:0, maxCount:14, minSize:1, name:"bn_Hard Line", numDashes:0, shape:"square", softenMode:"bell curve", softness:0, spacing:6, textureBlend:0, textureEdge:0, tipColoringMode:"random", tipCount:1, tipSpacing:0, tipSpacingMode:"random", type:"simple" }, "#ff0000"); dom.setOpacity(50); // add vertical width guides var guide800x600 = dom.findNamedElements('800x600 [750x410]')[0]; dom.addGuide(guide800x600.left, "vertical"); dom.addGuide(guide800x600.left + guide800x600.width, "vertical"); var guide1024x768 = dom.findNamedElements('1024x768 [970x578]')[0]; dom.addGuide(guide1024x768.left, "vertical"); dom.addGuide(guide1024x768.left + guide1024x768.width, "vertical"); // lock Web Guides layer dom.setLayerLocked(-1,-1,true,false); // return to original selected layer and elements dom.currentLayerNum = oldLayerNum; try{ fw.selection = sel; }catch(e){ dom.selectNone(); } return true; } AddWebGuides(); //fw.getDocumentDOM().setLayerLocked(3, 0, true, false); //fw.getDocumentDOM().addNewLine({x:-2.5, y:410.5}, {x:991.5, y:410.5});