Adobe 38039927 - Fireworks CS3 - PC Extended User Manual page 12

Extending fireworks
Hide thumbs Also See for 38039927 - Fireworks CS3 - PC:
Table of Contents

Advertisement

RectanglePrimitive
PathAttrs
Image
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 get values for the following read-only 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 read-only properties that you can return:
elementMask
element
linked
enabled
mode
showAttrs
autoExpandImages
effectList
c
name
effects
null.
ADOBE FIREWORKS CS3
8
Extending Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs3

Table of Contents