| Package | flare.vis.controls |
| Class | public class DragControl |
| Inheritance | DragControl Control flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
| activeItem : Sprite [read-only] The active item currently being dragged.
| DragControl | ||
![]() | filter : Function Boolean function indicating the items considered by the control.
| Control | |
![]() | object : InteractiveObject The interactive object this control is attached to.
| Control | |
| trackAtFrameRate : Boolean = false Indicates if drag should be followed at frame rate only.
| DragControl | ||
| Method | Defined by | ||
|---|---|---|---|
|
DragControl(filter:* = null)
Creates a new DragControl.
| DragControl | ||
|
attach(obj:InteractiveObject):void
Attach this control to the given interactive object.
| DragControl | ||
|
detach():InteractiveObject
Detach this control.
| DragControl | ||
| activeItem | property |
activeItem:Sprite [read-only]The active item currently being dragged.
Implementation public function get activeItem():Sprite
| trackAtFrameRate | property |
public var trackAtFrameRate:Boolean = falseIndicates if drag should be followed at frame rate only. If false, drag events can be processed faster than the frame rate, however, this may pre-empt other processing.
| DragControl | () | constructor |
public function DragControl(filter:* = null)Creates a new DragControl.
Parametersfilter:* (default = null) — a Boolean-valued filter function determining which
items should be draggable.
|
| attach | () | method |
public override function attach(obj:InteractiveObject):voidAttach this control to the given interactive object. This method will automatically detach if already attached to another object.
Parametersobj:InteractiveObject — the display object to attach to
|
| detach | () | method |
public override function detach():InteractiveObjectDetach this control.
ReturnsInteractiveObject — the interactive object this control was attached to,
or null if this control was not attached.
|