Packagecom.greensock.events
Classpublic class TransformEvent
InheritanceTransformEvent Inheritance flash.events.Event

Event related to actions performed by TransformManager Copyright 2007-2012, GreenSock. All rights reserved. This work is subject to the terms in http://www.greensock.com/eula.html or for corporate Club GreenSock members, the software agreement that was issued with the corporate membership.



Public Properties
 PropertyDefined By
  items : Array
TransformItems that were affected by the event
TransformEvent
  mouseEvent : MouseEvent
MouseEvent associated with the TransformEvent (if any)
TransformEvent
Public Methods
 MethodDefined By
  
TransformEvent($type:String, $items:Array, $mouseEvent:MouseEvent = null, $bubbles:Boolean = false, $cancelable:Boolean = false)
TransformEvent
  
clone():Event
[override]
TransformEvent
Public Constants
 ConstantDefined 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
Property Detail
itemsproperty
public var items:Array

TransformItems that were affected by the event

mouseEventproperty 
public var mouseEvent:MouseEvent

MouseEvent associated with the TransformEvent (if any)

Constructor Detail
TransformEvent()Constructor
public function TransformEvent($type:String, $items:Array, $mouseEvent:MouseEvent = null, $bubbles:Boolean = false, $cancelable:Boolean = false)



Parameters
$type:String
 
$items:Array
 
$mouseEvent:MouseEvent (default = null)
 
$bubbles:Boolean (default = false)
 
$cancelable:Boolean (default = false)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
CLICK_OFFConstant
public static const CLICK_OFF:String = tmClickOff

Dispatched when the mouse is clicked off of the selection, and ONLY when autoDeselect is false.

DELETEConstant 
public static const DELETE:String = tmDelete

Dispatched when an item is deleted.

DEPTH_CHANGEConstant 
public static const DEPTH_CHANGE:String = tmDepthChange

Dispatched when TransformManager changes an item's depth.

DESELECTConstant 
public static const DESELECT:String = tmDeselect

Dispatched by TransformItems when they are selected (the SELECT event is NOT dispatched by a TransformManager instance).

DESTROYConstant 
public static const DESTROY:String = tmDestroy

Dispatched when a TransformManager is destroyed.

DOUBLE_CLICKConstant 
public static const DOUBLE_CLICK:String = tmDoubleClick

Dispatched when the mouse is double-clicked quickly.

FINISH_INTERACTIVE_MOVEConstant 
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_ROTATEConstant 
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_SCALEConstant 
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.

MOVEConstant 
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_CURSORConstant 
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.

ROTATEConstant 
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.

SCALEConstant 
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_CURSORConstant 
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.

SELECTConstant 
public static const SELECT:String = tmSelect

Dispatched by TransformItems when they are selected (the SELECT event is NOT dispatched by a TransformManager instance).

SELECTION_CHANGEConstant 
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_MOVEConstant 
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_ROTATEConstant 
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_SCALEConstant 
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.