Specifications
Chapter 31386
Example
Assuming the Behaviors panel setup shown in the following example, calling
dreamweaver.behaviorInspector.moveBehaviorDown(2) swaps the positions of the
Preload Images and the Change Property actions on the onMouseDown event. Calling
dreamweaver.behaviorInspector.moveBehaviorDown() for any other position has no effect
because the
onClick and onFocus events each have only one associated behavior, and the
behavior at position 3 is already at the bottom of the onMouseDown event group.
dreamweaver.behaviorInspector.moveBehaviorUp()
Availability
Dreamweaver 3
Description
Moves a behavior higher in sequence by changing its execution order within the scope of an
event.
Arguments
positionIndex
positionIndex
is the position of the action in the Behaviors panel. The first action in the list is
at position 0.
Returns
Nothing.
Example
Assuming the Behaviors panel setup that is shown in the following example, calling
dreamweaver.behaviorInspector.moveBehaviorUp(3) swaps the positions of the
Preload Images and the Change Property actions on the
onMouseOver event. Calling
dreamweaver.behaviorInspector.moveBehaviorUp() for any other position has no effect
because the
onClick and onFocus events each have only one associated behavior, and the
behavior at position 2 is already at the top of the
onMouseDown event group.