dom.setElementVisible()
Availability
Fireworks 4.
Usage
dom.setElementVisisble(frameIndex, layerIndex, elementIndex, bShow)
Arguments
An integer value that specifies the frame that contains the element(s) to be shown
frameIndex
or hidden, starting with
An integer value that specifies the layer that contains the element(s) to be shown or
layerIndex
hidden, starting with
elementIndex
(although, to show or hide all the elements in the specified layer, pass
If
bShow
bShow
Returns
Nothing.
Description
Shows or hides the specified element(s).
Example
The following command hides all the elements in the current frame and layer.
fw.getDocumentDOM().setElementVisible(-1, -1, -1, false)
See also
dom.setElementVisibleByName()
dom.setElementVisibleByName()
Availability
Fireworks 4.
Usage
dom.setElementVisibleByName(name
Arguments
A string that specifies the name of the element(s) to be shown or hidden. If more than one
name
element has the same name, this function shows or hides all of them.
If
bShow
bShow
Returns
An array of the elements(s) for which visibility was set.
206
Chapter 5: Fireworks JavaScript API
(although, to specify the current frame, pass
0
(although, to specify the current layer, pass
0
An integer value that specifies the element(s) to show or hide, starting with
is
, the element(s) are visible. If
true
is
, the elements are visible. If
true
is
bShow
,
bShow)
is
bShow
false
here).
–1
here).
–1
here).
–1
, they are hidden.
false
, they are hidden.
0
Need help?
Do you have a question about the FIREWORKS MX 2004-EXTENDING FIREWORKS and is the answer not in the manual?
Questions and answers