| Package | com.soundstep.ui |
| Class | public class BaseUI |
| Inheritance | BaseUI flash.events.EventDispatcher |
baseUI = new BaseUI(this); txt = new TextField(); txt.name = "Textfield"; txt.text = "TexField example"; var elText:ElementUI = baseUI.addElement(txt); elText.alignX = ElementUI.ALIGN_CENTER; elText.alignY = ElementUI.ALIGN_BOTTOM; elText.marginBottom = 10; addChild(txt);
| Property | Defined by | ||
|---|---|---|---|
| elements : Array [read-only]
get the ElementUI list
| BaseUI | ||
| holder : DisplayObject [read-only]
return the holder
| BaseUI | ||
| Method | Defined by | ||
|---|---|---|---|
|
BaseUI(holder:DisplayObject)
Constructor
| BaseUI | ||
|
addElement(element:DisplayObject, type:uint = 0):ElementUI
add a element to the BaseUI list (DisplayObject like Sprite, MovieClip, TextField, Bitmap, ...)
| BaseUI | ||
|
getElement(element:DisplayObject):ElementUI
get the ElementUI instance
| BaseUI | ||
|
refresh():void
refresh all the elements
| BaseUI | ||
|
removeAllElements():void
remove all elements from the BaseUI list
| BaseUI | ||
|
removeElement(element:DisplayObject):void
remove a element from the BaseUI list
| BaseUI | ||
| elements | property |
elements:Array [read-only]get the ElementUI list
Implementation public function get elements():Array
| holder | property |
holder:DisplayObject [read-only]return the holder
Implementation public function get holder():DisplayObject
| BaseUI | () | constructor |
public function BaseUI(holder:DisplayObject)Constructor
Parametersholder:DisplayObject — DisplayObject of the BaseUI instance that will contains the elements
|
| addElement | () | method |
public function addElement(element:DisplayObject, type:uint = 0):ElementUIadd a element to the BaseUI list (DisplayObject like Sprite, MovieClip, TextField, Bitmap, ...)
Parameterselement:DisplayObject — DisplayObject instance of the element to be added to the BaseUI list
|
|
type:uint (default = 0) — uint type of the Element (element, background, ...), default is a type element (ElementUI.TYPE_ELEMENT)
|
ElementUI —
return an instance ElementUI
|
| getElement | () | method |
public function getElement(element:DisplayObject):ElementUIget the ElementUI instance
Parameterselement:DisplayObject — DisplayObject instance of the DisplayObject
|
ElementUI —
return the ElementUI instance of the DisplayObject
|
| refresh | () | method |
public function refresh():voidrefresh all the elements
| removeAllElements | () | method |
public function removeAllElements():voidremove all elements from the BaseUI list
| removeElement | () | method |
public function removeElement(element:DisplayObject):voidremove a element from the BaseUI list
Parameterselement:DisplayObject — DisplayObject instance of the element to be removed from the BaseUI list
|