Adobe 65011817 Extended User Guide - Page 165
dom.setLayerName, dom.setLayerSharing
UPC - 883919157368
View all Adobe 65011817 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 165 highlights
Last updated 12/8/2009 EXTENDING FIREWORKS 161 The Document object Description Locks or unlocks one or all the layers on the specified frame. Example The following command locks all the layers on the first frame: fw.getDocumentDOM().setLayerLocked(1, 0, true, true); dom.setLayerName() Availability Fireworks 3. Usage dom.setLayerName(layerIndex, layerName) Arguments layerIndex An integer value that specifies the layer to be renamed, starting with 0 (although, to specify the current layer, pass -1 here). layerName A string that specifies the new name for the layer. Returns Nothing. Description Renames the specified layer. Layers aren't required to have unique names, so no duplicate checking occurs. dom.setLayerSharing() Availability Fireworks 3. Usage dom.setLayerSharing(layerIndex, sharedStatus, bUnshareCopiesToAllFrames, bWarnUser) Arguments layerIndex An integer value that specifies the layer to be shared or not shared, starting with 0 (although, to specify the current layer, pass -1 here). sharedStatus Acceptable values are "shared" or "not shared". bUnshareCopiesToAllFrames A Boolean value used only if sharedStatus is "not shared" and the document has multiple frames. If these conditions are met and bUnshareCopiesToAllFrames is true, the items on the layer are duplicated to all the frames of the layer; if false, the items are placed only on the current frame. bWarnUser Boolean. If bWarnUser is true and bUnshareCopiesToAllFrames is enabled, the user is asked to confirm that data on other frames can be overwritten. If bWarnUser is false, data on other frames of the layer is overwritten without warning.