BaseUI minor updates

| 1 min read

I made some updates in BaseUI. You don't have to change a code already written, it is just bugs correction or functionalities added.

The demo, docs and source in the download page are updated.

Version 1.0.8 - The elements are now correctly refreshed when created if they are not visible (alpha or visible properties)

Version 1.0.7 - The elements are now correctly refreshed when a position or a margin is changed

Version 1.0.6 - Bug correction with the margin when using a type background mode ratio out

Version 1.0.5 - refresh method added in BaseUI

you can refresh all the elements of a BaseUI instance:

baseUI.refresh();

Version 1.0.4 - The Element is added to the list-to-render if the DisplayObject is already in the display list

When you create a ElementUI by adding a DisplayObject to a BaseUI instance, if this DisplayObject has been already added to the display list, the ElementUI is now added it correctly to the render list. This wasn't possible before:

var s:Sprite = new Sprite(); addChild(s); var e:ElementUI = baseUI.addElement(s);

Version 1.0.3 - Refresh method in ElementUI is now public

It makes you able to access to the refresh method:

var e:ElementUI = baseUI.getElement(mySprite); e.refresh();

Version 1.0.2 - removeAllElements method added in BaseUI

You can remove All the elements in BaseUI:

baseUI.removeAllElements();

Version 1.0.1 - Alignment and position for the background in mode ratio out is now respected

It makes you able to set the alignment of a ElementUI type background in mode ratio out. This wasn't possible before and was always aligned top left.