| Package | flare.vis.controls |
| Class | public class ClickControl |
| Inheritance | ClickControl Control flash.events.EventDispatcher |
See also
| Property | Defined by | ||
|---|---|---|---|
| clickDelay : Number The maximum allowed delay (in milliseconds) between clicks.
| ClickControl | ||
![]() | filter : Function Boolean function indicating the items considered by the control.
| Control | |
| numClicks : uint The number of clicks needed to trigger a click event.
| ClickControl | ||
![]() | object : InteractiveObject The interactive object this control is attached to.
| Control | |
| Method | Defined by | ||
|---|---|---|---|
|
ClickControl(filter:* = null, numClicks:uint = 1, onClick:Function = null, onClear:Function = null)
Creates a new ClickControl.
| ClickControl | ||
|
attach(obj:InteractiveObject):void
Attach this control to the given interactive object.
| ClickControl | ||
|
detach():InteractiveObject
Detach this control.
| ClickControl | ||
| clickDelay | property |
clickDelay:Number [read-write]The maximum allowed delay (in milliseconds) between clicks. The delay determines the maximum time interval between a mouse up event and a subsequent mouse down event.
Implementation public function get clickDelay():Number
public function set clickDelay(value:Number):void
| numClicks | property |
public var numClicks:uintThe number of clicks needed to trigger a click event. Setting this value to zero effectively disables the click control.
| ClickControl | () | constructor |
public function ClickControl(filter:* = null, numClicks:uint = 1, onClick:Function = null, onClear:Function = null)Creates a new ClickControl.
Parametersfilter:* (default = null) — a Boolean-valued filter function indicating which
items should trigger hover processing
|
|
numClicks:uint (default = 1) — the number of clicks
|
|
onClick:Function (default = null) — an optional SelectionEvent listener for click events
|
|
onClear:Function (default = null) |
| 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.
|
| deselect | event |
| select | event |