MACROMEDIA FIREWORKS MX 2004-EXTENDING FIREWORKS Manual page 73

Extending fireworks
Hide thumbs Also See for FIREWORKS MX 2004-EXTENDING FIREWORKS:
Table of Contents

Advertisement

To test whether a text block is selected, type the following code:
firstSelection = fw.selection[0];
if (firstSelection == "[object Text]"){
alert("I am a text block");
}
You can use the information in the following sections to return or set property values.
Note: The return value for a property may be
Working with properties for any selected object
You can return and set the following properties of any type of selected object:
top
left
width
height
visible
opacity
blendMode
name
mask
To return the name of the selected object, type the following code:
objectName=fw.selection[0].name;
The following properties contain other properties that you can return or set:
elementMask
element
linked
enabled
mode
showAttrs
autoExpandImages
effectList
name
effects
To return the name of the first effect that is applied to the selected object, type the following code:
effectName=fw.selection[0].effectList.effects[0].name;
.
null
Working with selected objects
73

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Fireworks mx 2004

Table of Contents