Package | com.greensock.events |
Class | public class TransformEvent |
Inheritance | TransformEvent flash.events.Event |
Property | Defined By | ||
---|---|---|---|
items : Array TransformItems that were affected by the event | TransformEvent | ||
mouseEvent : MouseEvent MouseEvent associated with the TransformEvent (if any) | TransformEvent |
Method | Defined By | ||
---|---|---|---|
TransformEvent($type:String, $items:Array, $mouseEvent:MouseEvent = null, $bubbles:Boolean = false, $cancelable:Boolean = false) | TransformEvent | ||
clone():Event [override] | TransformEvent |
Constant | Defined By | ||
---|---|---|---|
CLICK_OFF : String = tmClickOff [static] Dispatched when the mouse is clicked off of the selection, and ONLY when autoDeselect is false. | TransformEvent | ||
DELETE : String = tmDelete [static] Dispatched when an item is deleted. | TransformEvent | ||
DEPTH_CHANGE : String = tmDepthChange [static] Dispatched when TransformManager changes an item's depth. | TransformEvent | ||
DESELECT : String = tmDeselect [static] Dispatched by TransformItems when they are selected (the SELECT event is NOT dispatched by a TransformManager instance). | TransformEvent | ||
DESTROY : String = tmDestroy [static] Dispatched when a TransformManager is destroyed. | TransformEvent | ||
DOUBLE_CLICK : String = tmDoubleClick [static] Dispatched when the mouse is double-clicked quickly. | TransformEvent | ||
FINISH_INTERACTIVE_MOVE : String = tmFinishInteractiveMove [static] Dispatched when the user releases the mouse after having interactively moved the selection by dragging it with their mouse. | TransformEvent | ||
FINISH_INTERACTIVE_ROTATE : String = tmFinishInteractiveRotate [static] Dispatched when the user releases the mouse after having interactively rotated the selection by dragging one of the rotation handles. | TransformEvent | ||
FINISH_INTERACTIVE_SCALE : String = tmFinishInteractiveScale [static] Dispatched when the user releases the mouse after having interactively scaled the selection by dragging one of the scaling handles. | TransformEvent | ||
MOVE : String = tmMove [static] Dispatched constantly while an item is moved by TransformManager (each time the mouse moves). | TransformEvent | ||
RELEASE_CURSOR : String = tmReleaseCursor [static] Dispatched when TransformManager releases control of the visual design of the mouse cursor, swapping its custom one out for the normal mouse cursor. | TransformEvent | ||
ROTATE : String = tmRotate [static] Dispatched constantly while an item is rotated by TransformManager (each time the mouse moves). | TransformEvent | ||
SCALE : String = tmScale [static] Dispatched constantly while an item is scaled by TransformManager (each time the mouse moves). | TransformEvent | ||
SEIZE_CURSOR : String = tmSeizeCursor [static] Dispatched when TransformManager takes control of the visual design of the mouse cursor (like an icon that indicates scale, move, or rotation). | TransformEvent | ||
SELECT : String = tmSelect [static] Dispatched by TransformItems when they are selected (the SELECT event is NOT dispatched by a TransformManager instance). | TransformEvent | ||
SELECTION_CHANGE : String = tmSelectionChange [static] Dispatched by TransformManager whenever its selection changes, like when an item is added to the selection or removed from the selection or everything is deselected, etc. | TransformEvent | ||
START_INTERACTIVE_MOVE : String = tmStartInteractiveMove [static] Dispatched when the user mouses down to begin interactively moving a TransformManager selection. | TransformEvent | ||
START_INTERACTIVE_ROTATE : String = tmStartInteractiveRotate [static] Dispatched when the user mouses down on a rotation handle to begin interactively rotating a TransformManager selection. | TransformEvent | ||
START_INTERACTIVE_SCALE : String = tmStartInteractiveScale [static] Dispatched when the user mouses down on a scale handle to begin interactively scaling a TransformManager selection. | TransformEvent |
items | property |
public var items:Array
TransformItems that were affected by the event
mouseEvent | property |
public var mouseEvent:MouseEvent
MouseEvent associated with the TransformEvent (if any)
TransformEvent | () | Constructor |
public function TransformEvent($type:String, $items:Array, $mouseEvent:MouseEvent = null, $bubbles:Boolean = false, $cancelable:Boolean = false)
$type:String | |
$items:Array | |
$mouseEvent:MouseEvent (default = null )
| |
$bubbles:Boolean (default = false )
| |
$cancelable:Boolean (default = false )
|
clone | () | method |
override public function clone():Event
ReturnsEvent |
CLICK_OFF | Constant |
public static const CLICK_OFF:String = tmClickOff
Dispatched when the mouse is clicked off of the selection, and ONLY when autoDeselect
is false
.
DELETE | Constant |
public static const DELETE:String = tmDelete
Dispatched when an item is deleted.
DEPTH_CHANGE | Constant |
public static const DEPTH_CHANGE:String = tmDepthChange
Dispatched when TransformManager changes an item's depth.
DESELECT | Constant |
public static const DESELECT:String = tmDeselect
Dispatched by TransformItems when they are selected (the SELECT
event is NOT dispatched by a TransformManager instance).
DESTROY | Constant |
public static const DESTROY:String = tmDestroy
Dispatched when a TransformManager is destroyed.
DOUBLE_CLICK | Constant |
public static const DOUBLE_CLICK:String = tmDoubleClick
Dispatched when the mouse is double-clicked quickly.
FINISH_INTERACTIVE_MOVE | Constant |
public static const FINISH_INTERACTIVE_MOVE:String = tmFinishInteractiveMove
Dispatched when the user releases the mouse after having interactively moved the selection by dragging it with their mouse. To listen for every move (which typically happens many, many times during a single interactive mouse drag), listen for the MOVE
event instead.
FINISH_INTERACTIVE_ROTATE | Constant |
public static const FINISH_INTERACTIVE_ROTATE:String = tmFinishInteractiveRotate
Dispatched when the user releases the mouse after having interactively rotated the selection by dragging one of the rotation handles. To listen for every rotation (which typically happens many, many times during a single interactive mouse drag), listen for the ROTATE
event instead.
FINISH_INTERACTIVE_SCALE | Constant |
public static const FINISH_INTERACTIVE_SCALE:String = tmFinishInteractiveScale
Dispatched when the user releases the mouse after having interactively scaled the selection by dragging one of the scaling handles. To listen for every scale (which typically happens many, many times during a single interactive mouse drag), listen for the SCALE
event instead.
MOVE | Constant |
public static const MOVE:String = tmMove
Dispatched constantly while an item is moved by TransformManager (each time the mouse moves). To discern when an interactive move operation is finished (when the user releases the mouse after moving an item), listen for the the FINISH_INTERACTIVE_MOVE
event.
RELEASE_CURSOR | Constant |
public static const RELEASE_CURSOR:String = tmReleaseCursor
Dispatched when TransformManager releases control of the visual design of the mouse cursor, swapping its custom one out for the normal mouse cursor.
ROTATE | Constant |
public static const ROTATE:String = tmRotate
Dispatched constantly while an item is rotated by TransformManager (each time the mouse moves). To discern when an interactive rotation is finished (when the user releases the mouse after rotating an item), listen for the the FINISH_INTERACTIVE_ROTATE
event.
SCALE | Constant |
public static const SCALE:String = tmScale
Dispatched constantly while an item is scaled by TransformManager (each time the mouse moves). To discern when an interactive scale operation is finished (when the user releases the mouse after scaling an item), listen for the the FINISH_INTERACTIVE_SCALE
event.
SEIZE_CURSOR | Constant |
public static const SEIZE_CURSOR:String = tmSeizeCursor
Dispatched when TransformManager takes control of the visual design of the mouse cursor (like an icon that indicates scale, move, or rotation). This is NOT dispatched every time the cursor changes - for example, it will be dispatched as the user moves their mouse over the selection, but it will not be dispatched again as they move over the scale handle and it changes from the "move" icon to the "scale" icon (or "rotation"). This event simply indicates when TransformManager changes the cursor from the normal mouse one to any of TransformManager's custom cursors.
SELECT | Constant |
public static const SELECT:String = tmSelect
Dispatched by TransformItems when they are selected (the SELECT
event is NOT dispatched by a TransformManager instance).
SELECTION_CHANGE | Constant |
public static const SELECTION_CHANGE:String = tmSelectionChange
Dispatched by TransformManager whenever its selection changes, like when an item is added to the selection or removed from the selection or everything is deselected, etc.
START_INTERACTIVE_MOVE | Constant |
public static const START_INTERACTIVE_MOVE:String = tmStartInteractiveMove
Dispatched when the user mouses down to begin interactively moving a TransformManager selection. To listen for every move (which typically happens many, many times during a single interactive mouse drag), listen for the MOVE
event instead.
START_INTERACTIVE_ROTATE | Constant |
public static const START_INTERACTIVE_ROTATE:String = tmStartInteractiveRotate
Dispatched when the user mouses down on a rotation handle to begin interactively rotating a TransformManager selection. To listen for every rotation (which typically happens many, many times during a single interactive mouse drag), listen for the ROTATE
event instead.
START_INTERACTIVE_SCALE | Constant |
public static const START_INTERACTIVE_SCALE:String = tmStartInteractiveScale
Dispatched when the user mouses down on a scale handle to begin interactively scaling a TransformManager selection. To listen for every scale (which typically happens many, many times during a single interactive mouse drag), listen for the SCALE
event instead.