org.silex.toolbox.Toolbox

A toolbox base

Summary
org.silex.toolbox.ToolboxA toolbox base
Variables
silex_ptr
TOP_ZONE
LEFT_ZONE
BOTTOM_ZONE
RIGHT_ZONE
minWidth
minHeight
minimized
list
topBarBg_mc
drag_btn
resize_btn
minimize_btn
close_btn
shape_mc
ui_mc
parentToolbox
clipZone
listener
storedInfoSOshared object used to remember tool data
title
Functions
ToolboxConstructor.
allToolsLoaded
onLoad
Variables
_isToolBox
Functions
isToolBox
setInitialPosition
startDragStart the drag and drop event
unClip
stopDragStop the drag and drop event
startResizeStart the resize event
stopResizeStop the resize event
refreshA do-nothing implementation of the Toolbox interface’s refresh() method.
getSelectedContentA do-nothing implementation of the Toolbox interface’s getSelectedContent() method.
resizeTo resize the toolbox and to re-place button, shape and mcs elements
zoomApply a scale setting of _xscale and _yscale toolbox’s values
minimizemake UIs disappear, leave drag zone and minimize_btn get the initial size back in currentWidth and currentHeight
maximizeset resize with currentWidth and currentHeight properties
clipToMove this to according position to an other movie clip and its shape zone hit Directly calculate the 4 shape’s zone and place this on the correct position
followTo

Variables

silex_ptr

private var silex_ptr

TOP_ZONE

public var TOP_ZONE: Number

LEFT_ZONE

public var LEFT_ZONE: Number

BOTTOM_ZONE

public var BOTTOM_ZONE: Number

RIGHT_ZONE

public var RIGHT_ZONE: Number

minWidth

public var minWidth: Number

minHeight

public var minHeight: Number

minimized

public var minimized: Boolean

list

public var list: List

topBarBg_mc

public var topBarBg_mc: MovieClip

drag_btn

public var drag_btn: MovieClip

resize_btn

public var resize_btn: MovieClip

minimize_btn

public var minimize_btn: MovieClip

close_btn

public var close_btn: MovieClip

shape_mc

public var shape_mc: MovieClip

ui_mc

public var ui_mc: MovieClip

parentToolbox

public var parentToolbox: Toolbox

clipZone

public var clipZone: Number

listener

public var listener: Object

storedInfoSO

static var storedInfoSO: SharedObject

shared object used to remember tool data

title

var title: String

Functions

Toolbox

public function Toolbox()

Constructor.

allToolsLoaded

function allToolsLoaded()

onLoad

function onLoad()

Variables

_isToolBox

var _isToolBox: Boolean

Functions

isToolBox

function isToolBox():Boolean

setInitialPosition

function setInitialPosition()

startDrag

private function startDrag():Void

Start the drag and drop event

unClip

function unClip()

stopDrag

private function stopDrag():Void

Stop the drag and drop event

startResize

private function startResize():Void

Start the resize event

stopResize

private function stopResize():Void

Stop the resize event

refresh

public function refresh():Void

A do-nothing implementation of the Toolbox interface’s refresh() method.  Subclasses of Toolbox will provide a concrete implementation for this method.

getSelectedContent

public function getSelectedContent():Array

A do-nothing implementation of the Toolbox interface’s getSelectedContent() method.  Subclasses of Toolbox will provide a concrete implementation for this method.

resize

public function resize(w: Number,
h: Number):Void

To resize the toolbox and to re-place button, shape and mcs elements

Parameters

param w The width in pixel
param h The height in pixel

zoom

public function zoom(zscale: Number):Void

Apply a scale setting of _xscale and _yscale toolbox’s values

Parameters

param zscale zoom scale percent value

minimize

public function minimize():Void

make UIs disappear, leave drag zone and minimize_btn get the initial size back in currentWidth and currentHeight

maximize

public function maximize():Void

set resize with currentWidth and currentHeight properties

clipTo

public function clipTo(tb: Toolbox,
clipZone_num: Number):Void

Move this to according position to an other movie clip and its shape zone hit Directly calculate the 4 shape’s zone and place this on the correct position

Parameters

param tb An other toolbox reference for the hit

followTo

public function followTo():Void
The interface that must be implemented by all toolbox of an Toolbox object.
Layers toolbox
Properties toolbox
MultiContextTool toolbox
private var silex_ptr
public var TOP_ZONE: Number
public var LEFT_ZONE: Number
public var BOTTOM_ZONE: Number
public var RIGHT_ZONE: Number
public var minWidth: Number
public var minHeight: Number
public var minimized: Boolean
public var list: List
public var topBarBg_mc: MovieClip
public var drag_btn: MovieClip
public var resize_btn: MovieClip
public var minimize_btn: MovieClip
public var close_btn: MovieClip
public var shape_mc: MovieClip
public var ui_mc: MovieClip
public var parentToolbox: Toolbox
public var clipZone: Number
public var listener: Object
static var storedInfoSO: SharedObject
shared object used to remember tool data
var title: String
public function Toolbox()
Constructor.
function allToolsLoaded()
function onLoad()
var _isToolBox: Boolean
function isToolBox():Boolean
function setInitialPosition()
private function startDrag():Void
Start the drag and drop event
function unClip()
private function stopDrag():Void
Stop the drag and drop event
private function startResize():Void
Start the resize event
private function stopResize():Void
Stop the resize event
public function refresh():Void
A do-nothing implementation of the Toolbox interface’s refresh() method.
public function getSelectedContent():Array
A do-nothing implementation of the Toolbox interface’s getSelectedContent() method.
public function resize(w: Number,
h: Number):Void
To resize the toolbox and to re-place button, shape and mcs elements
public function zoom(zscale: Number):Void
Apply a scale setting of _xscale and _yscale toolbox’s values
public function minimize():Void
make UIs disappear, leave drag zone and minimize_btn get the initial size back in currentWidth and currentHeight
public function maximize():Void
set resize with currentWidth and currentHeight properties
public function clipTo(tb: Toolbox,
clipZone_num: Number):Void
Move this to according position to an other movie clip and its shape zone hit Directly calculate the 4 shape’s zone and place this on the correct position
public function followTo():Void