Packagecom.senocular.display.transform
Classpublic class ControlGhostOutline
InheritanceControlGhostOutline Inheritance Control Inheritance flash.display.Sprite

Creates a "ghost" outline of the target object's border showing its transform during the last commit.



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
  tool : TransformTool
[override] A reference to the TransformTool instance the control was placed, defined in the ADDED_TO_STAGE event.
ControlGhostOutline
Public Methods
 MethodDefined By
  
Constructor for creating new ControlGhostOutline instances.
ControlGhostOutline
  
draw():void
[override] Draws the visuals of the control.
ControlGhostOutline
 Inherited
redraw(event:Event):void
Handler for the TransformTool.REDRAW event.
Control
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
  
commit(event:Event):void
Handler for TransformTool.COMMIT events.
ControlGhostOutline
 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
Property Detail
toolproperty
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.


Implementation
    public function get tool():TransformTool
    public function set tool(value:TransformTool):void
Constructor Detail
ControlGhostOutline()Constructor
public function ControlGhostOutline()

Constructor for creating new ControlGhostOutline instances.

Method Detail
commit()method
protected function commit(event:Event):void

Handler for TransformTool.COMMIT events. ControlGhostOutline instances draw themselves in COMMIT events rather than REDRAW.

Parameters

event:Event

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.