| Package | com.senocular.display.transform |
| Class | public class ControlCursor |
| Inheritance | ControlCursor flash.display.Sprite |
| Property | Defined By | ||
|---|---|---|---|
| offset : Point
An offset from the mouse position to display cursor objects. | ControlCursor | ||
| tool : TransformTool
A reference to the TransformTool instance the control was placed,
defined in the ADDED_TO_STAGE event. | ControlCursor | ||
| Property | Defined By | ||
|---|---|---|---|
| activeTarget : IEventDispatcher
The object from which mouse events are consumed. | ControlCursor | ||
| cursor : DisplayObject
The current cursor being displayed by this control. | ControlCursor | ||
| mouseActive : Boolean = false
Determines whether or not mouse positions are being tracked. | ControlCursor | ||
| Method | Defined By | ||
|---|---|---|---|
ControlCursor(offset:Point = null)
Constructor for creating new ControlCursor instances. | ControlCursor | ||
| Method | Defined By | ||
|---|---|---|---|
activeMouseMove(event:MouseEvent):void
Handler for the MouseEvent.MOUSE_MOVE event. | ControlCursor | ||
addedToStage(event:Event):void
Handler for the Event.ADDED_TO_STAGE event. | ControlCursor | ||
cleanupActiveMouse():void
Clears variables and listeners for tracking the mouse location. | ControlCursor | ||
cleanupCursor():void
Cleanup steps when defining a new cursor value. | ControlCursor | ||
cursorChanged(event:Event):void
Handler for the TransformTool.CURSOR_CHANGED event. | ControlCursor | ||
removedFromStage(event:Event):void
Handler for the Event.REMOVED_FROM_STAGE event. | ControlCursor | ||
setupActiveMouse():void
Intializes variables and listeners for tracking the mouse location. | ControlCursor | ||
setupCursor():void
Setup steps when defining a new cursor value. | ControlCursor | ||
targetChanged(event:Event):void
Handler for the TransformTool.TARGET_CHANGED event. | ControlCursor | ||
| activeTarget | property |
protected var activeTarget:IEventDispatcherThe object from which mouse events are consumed. This would normally be the stage instance, but root may be used if stage is not allowed.
| cursor | property |
cursor:DisplayObjectThe current cursor being displayed by this control. Do not confuse this with the cursor property used by other controls that determine what cursor is used when those controls are interacted with. The value of this cursor changes as the Transform Tool is supplied new cursors and dispatches TransformTool.CURSOR_CHANGED events.
protected function get cursor():DisplayObject protected function set cursor(value:DisplayObject):void| mouseActive | property |
protected var mouseActive:Boolean = falseDetermines whether or not mouse positions are being tracked.
| offset | property |
offset:PointAn offset from the mouse position to display cursor objects.
public function get offset():Point public function set offset(value:Point):void| tool | property |
tool:TransformToolA reference to the TransformTool instance the control was placed, defined in the ADDED_TO_STAGE event. The control must be a direct child of a TransformTool instance for it to be recognized.
public function get tool():TransformTool public function set tool(value:TransformTool):void| ControlCursor | () | Constructor |
public function ControlCursor(offset:Point = null)Constructor for creating new ControlCursor instances.
Parametersoffset:Point (default = null) — An offset from the mouse position to display cursor
objects. If not provided, or null, the default is used.
|
| activeMouseMove | () | method |
protected function activeMouseMove(event:MouseEvent):voidHandler for the MouseEvent.MOUSE_MOVE event. MOUSE_MOVE is used to track the location of the mouse on the screen.
Parameters
event:MouseEvent |
| addedToStage | () | method |
protected function addedToStage(event:Event):voidHandler for the Event.ADDED_TO_STAGE event. By default, this is used to define the tool reference.
Parameters
event:Event |
| cleanupActiveMouse | () | method |
protected function cleanupActiveMouse():voidClears variables and listeners for tracking the mouse location.
| cleanupCursor | () | method |
protected function cleanupCursor():voidCleanup steps when defining a new cursor value. You may need to override this method to control the order of operations when adding content to the set cursor setter. This is called before a new cursor value is set.
| cursorChanged | () | method |
protected function cursorChanged(event:Event):voidHandler for the TransformTool.CURSOR_CHANGED event.
Parameters
event:Event |
| removedFromStage | () | method |
protected function removedFromStage(event:Event):voidHandler for the Event.REMOVED_FROM_STAGE event. By default, this is used to clear the tool reference.
Parameters
event:Event |
| setupActiveMouse | () | method |
protected function setupActiveMouse():voidIntializes variables and listeners for tracking the mouse location.
| setupCursor | () | method |
protected function setupCursor():voidSetup steps when defining a new cursor value. You may need to override this method to control the order of operations when adding content to the set cursor setter. This is called after a new cursor value is set.
| targetChanged | () | method |
protected function targetChanged(event:Event):voidHandler for the TransformTool.TARGET_CHANGED event.
Parameters
event:Event |