Packagestarling.events
Classpublic class EnterFrameEvent
InheritanceEnterFrameEvent Inheritance Event Inheritance Object

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.



Public Properties
 PropertyDefined By
 Inheritedbubbles : Boolean
[read-only] Indicates if event will bubble.
Event
 InheritedcurrentTarget : EventDispatcher
[read-only] The object the event is currently bubbling at.
Event
 Inheriteddata : Object
[read-only] Arbitrary data that is attached to the event.
Event
  passedTime : Number
[read-only] The time that has passed since the last frame (in seconds).
EnterFrameEvent
 Inheritedtarget : EventDispatcher
[read-only] The object that dispatched the event.
Event
 Inheritedtype : String
[read-only] A string that identifies the event.
Event
Public Methods
 MethodDefined By
  
EnterFrameEvent(type:String, passedTime:Number, bubbles:Boolean = false)
Creates an enter frame event with the passed time.
EnterFrameEvent
 Inherited
Prevents any other listeners from receiving the event.
Event
 Inherited
Prevents listeners at the next bubble stage from receiving the event.
Event
 Inherited
toString():String
Returns a description of the event, containing type and bubble information.
Event
Public Constants
 ConstantDefined By
 InheritedADDED : String = added
[static] Event type for a display object that is added to a parent.
Event
 InheritedADDED_TO_STAGE : String = addedToStage
[static] Event type for a display object that is added to the stage
Event
 InheritedCANCEL : String = cancel
[static] An event type to be utilized in custom events.
Event
 InheritedCHANGE : String = change
[static] An event type to be utilized in custom events.
Event
 InheritedCLOSE : String = close
[static] An event type to be utilized in custom events.
Event
 InheritedCOMPLETE : String = complete
[static] Event type that may be used whenever something finishes.
Event
 InheritedCONTEXT3D_CREATE : String = context3DCreate
[static] Event type for a (re)created stage3D rendering context.
Event
  ENTER_FRAME : String = enterFrame
[static] Event type for a display object that is entering a new frame.
EnterFrameEvent
 InheritedFLATTEN : String = flatten
[static] Event type for a display object that is being flattened.
Event
 InheritedOPEN : String = open
[static] An event type to be utilized in custom events.
Event
 InheritedREMOVED : String = removed
[static] Event type for a display object that is removed from its parent.
Event
 InheritedREMOVED_FROM_STAGE : String = removedFromStage
[static] Event type for a display object that is removed from the stage.
Event
 InheritedREMOVE_FROM_JUGGLER : String = removeFromJuggler
[static] Event type for an animated object that requests to be removed from the juggler.
Event
 InheritedRESIZE : String = resize
[static] Event type for a resized Flash Player.
Event
 InheritedROOT_CREATED : String = rootCreated
[static] Event type that indicates that the root DisplayObject has been created.
Event
 InheritedSCROLL : String = scroll
[static] An event type to be utilized in custom events.
Event
 InheritedSELECT : String = select
[static] An event type to be utilized in custom events.
Event
 InheritedTEXTURES_RESTORED : String = texturesRestored
[static] Event type that is dispatched by the AssetManager after a context loss.
Event
 InheritedTRIGGERED : String = triggered
[static] Event type for a triggered button.
Event
Property Detail
passedTimeproperty
passedTime:Number  [read-only]

The time that has passed since the last frame (in seconds).


Implementation
    public function get passedTime():Number
Constructor Detail
EnterFrameEvent()Constructor
public function EnterFrameEvent(type:String, passedTime:Number, bubbles:Boolean = false)

Creates an enter frame event with the passed time.

Parameters
type:String
 
passedTime:Number
 
bubbles:Boolean (default = false)
Constant Detail
ENTER_FRAMEConstant
public static const ENTER_FRAME:String = enterFrame

Event type for a display object that is entering a new frame.