Packagecom.senocular.display.transform
Classpublic class ControlReset
InheritanceControlReset Inheritance Control Inheritance flash.display.Sprite

Resets a target object's transform back to its original, untransformed state. This control automatically positions itself at the lower-right of the target object's bounding box.



Public Properties
 PropertyDefined By
 InheritedfillAlpha : Number
The alpha of the color used for filled shapes in dynamically drawn control graphics.
Control
 InheritedfillColor : uint
The color to be used for filled shapes in dynamically drawn control graphics.
Control
 InheritedlineAlpha : Number
The alpha of the color used for outlines in dynamically drawn control graphics.
Control
 InheritedlineColor : uint
The color to be used for outlines in dynamically drawn control graphics.
Control
 InheritedlineThickness : Number
The thickness used for outlines in dynamically drawn control graphics.
Control
 Inheritedtool : TransformTool
A reference to the TransformTool instance the control was placed, defined in the ADDED_TO_STAGE event.
Control
Public Methods
 MethodDefined By
  
Constructor for creating new ControlReset instances.
ControlReset
  
draw():void
[override] Draws the visuals of the control.
ControlReset
  
redraw(event:Event):void
[override] Handler for the TransformTool.REDRAW event.
ControlReset
Protected Methods
 MethodDefined By
 Inherited
added(event:Event):void
Handler for the Event.ADDED event (capture).
Control
 Inherited
addedToStage(event:Event):void
Handler for the Event.ADDED_TO_STAGE event.
Control
 Inherited
Cleanup steps when defining a new tool value.
Control
  
click(event:MouseEvent):void
Handler for the MouseEvent.CLICK event.
ControlReset
 Inherited
removedFromStage(event:Event):void
Handler for the Event.REMOVED_FROM_STAGE event.
Control
 Inherited
setupTool():void
Setup steps when defining a new tool value.
Control
 Inherited
targetChanged(event:Event):void
Handler for the TransformTool.TARGET_CHANGED event.
Control
Constructor Detail
ControlReset()Constructor
public function ControlReset()

Constructor for creating new ControlReset instances.

Method Detail
click()method
protected function click(event:MouseEvent):void

Handler for the MouseEvent.CLICK event. When clicked, the ControlReset instance resets the Transform Tool's transform and then updates it.

Parameters

event:MouseEvent

draw()method 
override public function draw():void

Draws the visuals of the control. This is called when first added to the stage as a child of a TransformTool instance and when a child is added to the control's own display list. It can be called at any time to redraw the graphics of the control.

redraw()method 
override public function redraw(event:Event):void

Handler for the TransformTool.REDRAW event. This has no default behavior and is to be overriden by subclasses if needed.

Parameters

event:Event