Packageflexlib.containers
Classpublic class DragScrollingCanvas
InheritanceDragScrollingCanvas Inheritance mx.containers.Canvas

DragScrollingCanvas is a Canvas component that allows the user to drag the contents instead of or in addition to using the scrollbars. There is only one additional property, childrenDoDrag, which is a Boolean indicating whether or not a mouse down event on a child component will trigger the dragging.



Public Properties
 PropertyDefined by
  childrenDoDrag : Boolean
Boolean to indicate whether the mouse events on the child components should trigger the dragging.
DragScrollingCanvas
  undraggableChildren : Array
Array of child components that will not trigger the dragging.
DragScrollingCanvas
  undraggableClasses : Array
Array of Classes that will not trigger the dragging.
DragScrollingCanvas
Property detail
childrenDoDragproperty
childrenDoDrag:Boolean  [read-write]

Boolean to indicate whether the mouse events on the child components should trigger the dragging. If true, any mouse down events will trigger dragging, even if these events happen on a child, like a Button. If set to false then only mouse down events directly on the canvas will trigger dragging.

The default value is true.

Implementation
    public function get childrenDoDrag():Boolean
    public function set childrenDoDrag(value:Boolean):void
undraggableChildrenproperty 
undraggableChildren:Array  [read-write]

Array of child components that will not trigger the dragging. Only applicable if childrenDoDrag is true.

Implementation
    public function get undraggableChildren():Array
    public function set undraggableChildren(value:Array):void
undraggableClassesproperty 
undraggableClasses:Array  [read-write]

Array of Classes that will not trigger the dragging. Only applicable if childrenDoDrag is true.

Implementation
    public function get undraggableClasses():Array
    public function set undraggableClasses(value:Array):void