Adobe 38040334 - Dreamweaver CS3 User Manual page 291

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

DREAMWEAVER CS3
286
API Reference
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
dream-
function returns 0:
weaver.behaviorInspector.getSelectedBehavior()
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
argument is the position of the action in the Behaviors panel. The first action in the list is at
positionIndex
position 0.
Returns
Nothing.
Example
If the Behaviors panel is set up as shown in the following figure, calling the
dreamweaver.behaviorIn-
function swaps the positions of the Preload Images and the Change Property
spector.moveBehaviorDown(2)
actions on the
event. Calling the
onMouseDown
dreamweaver.behaviorInspector.moveBehaviorDown()
function for any other position has no effect because the
and
events each have only one associated
onClick
onFocus
behavior, and the behavior at position 3 is already at the bottom of the
event group.
onMouseDown

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents