scaffold.libs_as.feathers.core.IStateContext.as Maven / Gradle / Ivy
/*
Feathers
Copyright 2012-2015 Bowler Hat LLC. All Rights Reserved.
This program is free software. You can redistribute and/or modify it in
accordance with the terms of the accompanying license agreement.
*/
package feathers.core
{
/**
* Dispatched when the display object's state changes.
*
* 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
null
* 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.
*
*
* @eventType feathers.events.FeathersEventType.STATE_CHANGE
*/
[Event(name="stateChange",type="starling.events.Event")]
/**
* An object with multiple states.
*/
public interface IStateContext extends IFeathersEventDispatcher
{
/**
* The object's current state.
*
* @see #event:stateChange feathers.events.FeathersEventType.STATE_CHANGE
*/
function get currentState():String;
}
}