Getting started

The following is an empty Agera application:

package {
    import agera.core.*;
    import flash.events.*;

    public class MainApplication extends AgeraApplication {
        public function MainApplication() {
            super();
            this.addEventListener(Event.ADDED_TO_STAGE, this.initialize);
        }
        
        private function initialize(event: Event): void {
            // Action
        }
    }
}

Default theme

It may be desired to listen to updates on the default UI theme when assigning the application's defaultTheme property to cause skin updates. Do so by calling initializeDefaultTheme() passing the desired display object.

this.initializeDefaultTheme(object);

Last updated