Package | feathers.themes |
Interface | public interface IAsyncTheme extends IFeathersEventDispatcher |
Implementors | MetalWorksDesktopThemeWithAssetManager, MetalWorksMobileThemeWithAssetManager |
Product Version : | Feathers 2.3.0 |
AssetManager
), during initialization to load textures and
other assets. This type of theme may not be ready to style components
immediately, and it will dispatch Event.COMPLETE
once the
it has fully initialized. Attempting to create Feathers components before
the theme has dispatched Event.COMPLETE
may result in no
skins or even runtime errors.
Method | Defined By | ||
---|---|---|---|
addEventListener(type:String, listener:Function):void
Adds a listener for an event type. | IFeathersEventDispatcher | ||
dispatchEvent(event:Event):void
Dispatches an event to all listeners added for the specified event type. | IFeathersEventDispatcher | ||
dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void
Dispatches an event from the pool with the specified to all listeners
for the specified event type. | IFeathersEventDispatcher | ||
hasEventListener(type:String, listener:Function = null):Boolean
Checks if a listener has been added for the specified event type. | IFeathersEventDispatcher | ||
isCompleteForStarling(starling:Starling):Boolean
Indicates if the assets have been loaded and the theme has been
initialized for a specific Starling instance. | IAsyncTheme | ||
removeEventListener(type:String, listener:Function):void
Removes a listener for an event type. | IFeathersEventDispatcher | ||
removeEventListeners(type:String = null):void
Removes all listeners for an event type. | IFeathersEventDispatcher |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the theme's assets are loaded, and the theme has initialized. | IAsyncTheme |
isCompleteForStarling | () | method |
public function isCompleteForStarling(starling:Starling):Boolean
Indicates if the assets have been loaded and the theme has been initialized for a specific Starling instance.
Parameters
starling:Starling |
Boolean |
See also
complete | Event |
starling.events.Event
starling.events.Event.COMPLETE
Dispatched when the theme's assets are loaded, and the theme has initialized. Feathers component cannot be skinned automatically by the theme until this event is dispatched.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
data | The Starling instance that
is associated with the assets that have finished loading. |
target | The Object that dispatched the event;
it is not always the Object listening for the event. Use the
currentTarget property to always access the Object
listening for the event. |
See also