Working with properties for any selected object

You can get values for the following read-only properties of any type of selected object:

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

effectList

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;

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/fireworks/8/fwextending/fw_02_70.htm