User Guide
Behavior functions 309
dreamweaver.behaviorInspector.getSelectedBehavior()
Availability
Dreamweaver 3.
Description
Gets the position of the selected action in the Behaviors panel.
Arguments
None.
Returns
An integer that represents the position of the selected action in the Behaviors panel, or –1 if no
action is selected.
Example
If the first action in the Behaviors panel is selected, as shown in the following figure, a call to the
dreamweaver.behaviorInspector.getSelectedBehavior() function returns 0:
dreamweaver.behaviorInspector.moveBehaviorDown()
Availability
Dreamweaver 3.
Description
Moves a behavior action lower in sequence by changing its execution order within the scope of
an event.
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.
Returns
Nothing.
000_DW_API_Print.book Page 309 Wednesday, August 20, 2003 9:14 AM