Behavior functions
311
Example
If the Behaviors panel is set up as shown in the following figure, calling the
dreamweaver.behaviorInspector.moveBehaviorUp(3)
function swaps the positions of the
Preload Images and the Change Property actions on the
onMouseOver
event. Calling the
dreamweaver.behaviorInspector.moveBehaviorUp()
function 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.
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.
000_DW_API_Print.book Page 311 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...