flexlib :: library Documentation | All Packages | All Classes | Index | Frames No Frames |
DragScrollingCanvas

Package | flexlib.containers
Class | public class DragScrollingCanvas
Inheritance | DragScrollingCanvas 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

| Property | Defined 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

childrenDoDrag | property

`childrenDoDrag:Boolean`

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`

undraggableChildren | property |

`undraggableChildren:Array`

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`

undraggableClasses | property |

`undraggableClasses:Array`

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`

Mercredi Juillet 4 2012, 09:36 PM +02:00