Class org.aswing.MCPanel

Description

A Container base on a existing movieclip.

This component is useful when you want to add component onto a existing movieclip.

Field Index

Inherited from Container

Inherited from Component

Inherited from EventDispatcher

Method Index

new MCPanel()
addTo(), createChildMC(), destroy(), getGlobalLocation(), getInsets(), getMCPanels(), getPanelMC(), insert(), isLiving(), isValidateRoot(), removeAt(), removeFromContainer(), setBorder(), setGlobalLocation()

Inherited from Container

Inherited from Component

Inherited from EventDispatcher

Constructor Detail

MCPanel

public function MCPanel(panelMC:MovieClip, width:Number, height:Number)

MCPanel(panelMC:MovieClip, width:Number, height:Number)
MCPanel(panelMC:MovieClip)

Method Detail

getMCPanels

static public function getMCPanels():Array

Returns all living MCPanels. All MCPanel being exist when it was created and has children, being not exist when it's destroy or removeFromContainer was called or just has not any children yet.

See Also

insert

public function insert(i:Number, com:Component, constraints:Object):Void

Description copied from Container

Add component to spesified index. So if the com has a parent, it will remove from its parent first, then add to this container.

Overrides

insert() in org.aswing.Container

createChildMC

public function createChildMC(nameStart:String):MovieClip

destroy

public function destroy():Void

Note this method will removeMoviClip of this MCPanel's panelMC, And after destory, there is no way make it reshow again.

removeFromContainer

public function removeFromContainer():Void

Note this method will removeMoviClip of this MCPanel's panelMC.

Overrides

removeFromContainer() in org.aswing.Component

See Also

setGlobalLocation

public function setGlobalLocation():Void

Description copied from Component

setGlobalLocation(x:Number, y:Number)
setGlobalLocation(p:Point)

Set the component's location in global coordinate.

Overrides

setGlobalLocation() in org.aswing.Component

getGlobalLocation

public function getGlobalLocation(p:Point):Point

Description copied from Component

getGlobalLocation(p:Point)
getGlobalLocation()

Stores the global location value of this component into "return value" p and returns p. If p is null or undefined a new Point object is allocated.

Overrides

getGlobalLocation() in org.aswing.Component