| Package | com.senocular.display.transform |
| Class | public class ControlMove |
| Inheritance | ControlMove ControlInteractive Control flash.display.Sprite |
| Property | Defined By | ||
|---|---|---|---|
![]() | cursor : Cursor
The cursor to be used when interacting with this control. | ControlInteractive | |
![]() | fillAlpha : Number
The alpha of the color used for filled shapes in dynamically drawn
control graphics. | Control | |
![]() | fillColor : uint
The color to be used for filled shapes in dynamically drawn
control graphics. | Control | |
![]() | lineAlpha : Number
The alpha of the color used for outlines in dynamically drawn
control graphics. | Control | |
![]() | lineColor : uint
The color to be used for outlines in dynamically drawn control
graphics. | Control | |
![]() | lineThickness : Number
The thickness used for outlines in dynamically drawn control
graphics. | Control | |
| target : DisplayObject
Target display object to be transformed by the TransformTool. | ControlMove | ||
| tool : TransformTool [override]
A reference to the TransformTool instance the control was placed,
defined in the ADDED_TO_STAGE event. | ControlMove | ||
| Method | Defined By | ||
|---|---|---|---|
ControlMove(cursor:Cursor = null)
Constructor for creating new ControlMove instances. | ControlMove | ||
![]() | draw():void
Draws the visuals of the control. | Control | |
![]() | redraw(event:Event):void [override]
Handler for the TransformTool.REDRAW event. | ControlInteractive | |
| Method | Defined By | ||
|---|---|---|---|
activeMouseMove(event:MouseEvent):void [override]
Handler for the MouseEvent.MOUSE_MOVE event from the activeTarget
object. | ControlMove | ||
![]() | activeMouseUp(event:MouseEvent):void
Handler for the MouseEvent.MOUSE_UP event (capture and no capture)
from the activeTarget object. | ControlInteractive | |
![]() | added(event:Event):void
Handler for the Event.ADDED event (capture). | Control | |
![]() | addedToStage(event:Event):void
Handler for the Event.ADDED_TO_STAGE event. | Control | |
![]() | calculateAndUpdate(commit:Boolean = true, enforceNegativeScaling:Boolean = true):void
Calls calculateTransform and update from the parent TransformTool
instance. | ControlInteractive | |
![]() | cleanupActiveMouse():void
Clears variables and listeners for tracking the mouse location. | ControlInteractive | |
![]() | cleanupCursor():void
Cleanup steps when defining a new cursor value. | ControlInteractive | |
![]() | cleanupTool():void
Cleanup steps when defining a new tool value. | Control | |
![]() | mouseDown(event:MouseEvent):void
Handler for the MouseEvent.ROLL_OUT event for the control object. | ControlInteractive | |
![]() | mouseUp(event:MouseEvent):void
Handler for the MouseEvent.MOUSE_UP event for the control object. | ControlInteractive | |
![]() | move():void
Moves the transform using the current mouse position (applied to
postTransform). | ControlInteractive | |
![]() | moveRegistration():void
Moves the registration point using the current mouse position. | ControlInteractive | |
![]() | removedFromStage(event:Event):void [override]
Handler for the Event.REMOVED_FROM_STAGE event. | ControlInteractive | |
![]() | restrict(event:Event):void
Handler for the TransformTool.RESTRICT event. | ControlInteractive | |
![]() | rollOut(event:MouseEvent):void
Handler for the MouseEvent.ROLL_OUT event for the control object. | ControlInteractive | |
![]() | rollOver(event:MouseEvent):void
Handler for the MouseEvent.ROLL_OVER event for the control object. | ControlInteractive | |
![]() | rotate():void
Rotates a transform using the current mouse position (applied to
postTransform). | ControlInteractive | |
![]() | scale():void
Scales the transform along both the x and y axes using the
current mouse position (applied to preTransform). | ControlInteractive | |
![]() | scaleXAxis():void
Scales the transform along the axis using the current mouse
position (applied to preTransform). | ControlInteractive | |
![]() | scaleYAxis():void
Scales the transform along the y axis using the current mouse
position (applied to preTransform). | ControlInteractive | |
![]() | setupActiveMouse():void
Intializes variables and listeners for tracking the mouse location. | ControlInteractive | |
![]() | setupCursor():void
Setup steps when defining a new cursor value. | ControlInteractive | |
![]() | setupTool():void [override]
Setup steps when defining a new tool value. | ControlInteractive | |
![]() | skewXAxis():void
Skews the transform along the x axis using the current mouse
position (applied to preTransform). | ControlInteractive | |
![]() | skewYAxis():void
Skews the transform along the y axis using the current mouse
position (applied to preTransform). | ControlInteractive | |
targetChanged(event:Event):void [override]
Handler for the TransformTool.TARGET_CHANGED event. | ControlMove | ||
![]() | uniformScale():void
Scales the transform along both the x and y axes using the
current mouse position in a uniform fashion (applied to
preTransform). | ControlInteractive | |
![]() | updateActiveMouse():void
Updates active references for mouse positions. | ControlInteractive | |
![]() | updateBaseMouse():void
Updates base references for mouse positions. | ControlInteractive | |
![]() | updateBaseReferences():void
Updates the values of the base references. | ControlInteractive | |
![]() | updateMousePositions(event:MouseEvent = null):void
Updates mouse position references from the provided mouse
event. | ControlInteractive | |
| target | property |
target:DisplayObjectTarget display object to be transformed by the TransformTool. Control points may use the target to add listeners to, for example to move the target by dragging it. This value is automatically updated through the TransformTool.TARGET_CHANGED event.
public function get target():DisplayObject public function set target(value:DisplayObject):void| tool | property |
tool:TransformTool[override] A 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| ControlMove | () | Constructor |
public function ControlMove(cursor:Cursor = null)Constructor for creating new ControlMove instances.
Parameterscursor:Cursor (default = null) — The cursor to be used while interacting with the
control instance. For ControlMove instances, this cursor is
displayed when interacting with the Transform Tool's target
object.
|
| activeMouseMove | () | method |
override protected function activeMouseMove(event:MouseEvent):voidHandler for the MouseEvent.MOUSE_MOVE event from the activeTarget object. This is used to update the active mouse positions.
Parameters
event:MouseEvent |
| targetChanged | () | method |
override protected function targetChanged(event:Event):voidHandler for the TransformTool.TARGET_CHANGED event. This has no default behavior and is to be overriden by subclasses if needed.
Parameters
event:Event |