EnterFrameEvent
public class
loom2d.events.EnterFrameEvent
Description
An EnterFrameEvent is triggered once per frame and is dispatched to all objects in the display tree.
It contains information about the time that has passed since the last frame. That way, you can easily make animations that are independent of the frame rate, taking the passed time into account.
API overview
Constructor
EnterFrameEvent
(
type: String
,
passedTime: Number
,
bubbles: Boolean
= false
)
Creates an enter frame event with the passed time
Attributes
Public attributes
passedTime: Number |
read-only
The time that has passed since the last frame (in seconds) |
Constructor
Attributes
currentTarget: EventDispatcher
Inherited from Event
read-only
The object the event is currently bubbling at.
Constants
CANCEL: String
static
An event type to be utilized in custom events. Not used by Starling right now.
CHANGE: String
static
An event type to be utilized in custom events. Not used by Starling right now.
REMOVE_FROM_JUGGLER: String
static
Event type for an animated object that requests to be removed from the juggler.
SCROLL: String
static
An event type to be utilized in custom events. Not used by Starling right now.
SELECT: String
static
An event type to be utilized in custom events. Not used by Starling right now.
Functions
getFullTypeName
(): String
Inherited from Object
native
Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.
Returns
String | fully qualified type name of the Object. |
getType
(): Type
Inherited from Object
native
Gets the Type that describes the Object.
Returns
Type | The Type that describes the object. |
getTypeName
(): String
Inherited from Object
native
Gets the type name of the Object.
Returns
String | type name of the Object. |
stopImmediatePropagation
(): Void
Inherited from Event
Prevents any other listeners from receiving the event.