User Guide
378 Page Content
dreamweaver.behaviorInspector.setSelectedBehavior()
Availability
Dreamweaver 3.
Description
Selects the action at the specified position in the Behaviors panel.
Arguments
positionIndex
■ The positionIndex argument is the position of the action in the Behaviors panel. The
first action in the list is at position 0. To deselect all actions, specify a
positionIndex of –
1. Specifying a position for which no action exists is equivalent to specifying –1.
Returns
Nothing.
Example
If the Behaviors panel is set up as shown in the following figure, calling the
dreamweaver.behaviorInspector.setSelection(2) function selects the Change Property
action that is associated with the
onMouseDown event:
000_DW_API_Print.book Page 378 Wednesday, July 20, 2005 11:58 AM