| Method | Defined by | ||
|---|---|---|---|
|
drawShape(mc:MovieClip, data:PropertyBag):void
Called everytime a property changes in the shape.
| IWhiteboardTool | ||
|
getName():String
Must return the name of your tool such as 'Rectangle'.
| IWhiteboardTool | ||
|
init(manager:WhiteboardManager):void
This is where your tool must set it's editor and whether it can be instanciated..
| IWhiteboardTool | ||
|
initShape(mc:MovieClip, data:PropertyBag, previewShape:Boolean):void
Called once for every shape.
| IWhiteboardTool | ||
|
onDeselect():void
Called when the tool is deselected.
| IWhiteboardTool | ||
|
onSelect():void
Called when the tool is selected.
| IWhiteboardTool | ||
| drawShape | () | method |
public function drawShape(mc:MovieClip, data:PropertyBag):voidCalled everytime a property changes in the shape.
Parametersmc:MovieClip — movieclip to draw on, same as the mc passed in initShape.
|
|
data:PropertyBag — the data for the shape in a PropertyBag.
|
| getName | () | method |
public function getName():StringMust return the name of your tool such as 'Rectangle'.
ReturnsString |
| init | () | method |
public function init(manager:WhiteboardManager):voidThis is where your tool must set it's editor and whether it can be instanciated..
Parametersmanager:WhiteboardManager — WhiteboardManager which owns the tool.
|
| initShape | () | method |
public function initShape(mc:MovieClip, data:PropertyBag, previewShape:Boolean):voidCalled once for every shape. When a new shape is created by pressing the stage and when a shape comes in from the server. This is a good place to attach all constant UI such as a text field.
Parametersmc:MovieClip — movieclip to attach your UI too.
|
|
data:PropertyBag — the settings for your shape.
|
|
previewShape:Boolean — when its a temporary shape created when the user pressed the stage false for a shape on the server.
|
| onDeselect | () | method |
public function onDeselect():voidCalled when the tool is deselected.
| onSelect | () | method |
public function onSelect():voidCalled when the tool is selected.