Packageimpression.events
Classpublic class CueEvent
InheritanceCueEvent Inheritance StoryboardEvent Inheritance flash.events.Event

The AudioSequencer and TimeSequencer objects dispatch a CueEvent object when a sequencer element should be processed.



Public Properties
 PropertyDefined By
  childElement : ChildElement
[read-only] The ChildElement associated with the event.
CueEvent
  complete : Boolean
Indicates whether or not the childElement parameter's complete persisted property should be set to true when the event returns.
CueEvent
  currentPosition : Number
[read-only] The value of the position property of the ChildElement object that triggered the event.
CueEvent
 Inheritedsb : Storyboard
[read-only] The Storyboard object assigned to the target.
StoryboardEvent
Public Methods
 MethodDefined By
  
CueEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, sb:Storyboard = null, currentPosition:Number = -1, childElement:ChildElement = null, complete:Boolean = true)
Creates a new instance of a CueEvent object.
CueEvent
  
clone():Event
[override] Duplicates an instance of the event object.
CueEvent
  
toString():String
[override] Returns a string containing all the properties of the CueEvent object.
CueEvent
Public Constants
 ConstantDefined By
 InheritedCOMPLETE : String = complete
[static] The StoryboardEvent.COMPLETE constant defines the value of the type property of a complete event object.
StoryboardEvent
 InheritedCONTENT_LOAD_BEGIN : String = contentLoadBegin
[static] The StoryboardEvent.CONTENT_LOAD_BEGIN constant defines the value of the type property of a content load begin event object.
StoryboardEvent
 InheritedCONTENT_LOAD_END : String = contentLoadEnd
[static] The StoryboardEvent.CONTENT_LOAD_END constant defines the value of the type property of a content load end event object.
StoryboardEvent
  CUE : String = cue
[static] The CueEvent.CUE constant defines the value of the type property of an cue event object.
CueEvent
 InheritedINITIALIZE : String = initialize
[static] The StoryboardEvent.INITIALIZE constant defines the value of the type property of a initialize event object.
StoryboardEvent
 InheritedLOAD_COMPLETE : String = loadComplete
[static] The StoryboardEvent.LOAD_COMPLETE constant defines the value of the type property of a load event object.
StoryboardEvent
 InheritedLOAD_START : String = loadStart
[static] The StoryboardEvent.LOAD_START constant defines the value of the type property of an load start event object.
StoryboardEvent
 InheritedUNLOAD : String = unload
[static] The StoryboardEvent.UNLOAD constant defines the value of the type property of an unload event object.
StoryboardEvent
Property Detail
childElementproperty
childElement:ChildElement  [read-only]

The ChildElement associated with the event.


Implementation
    public function get childElement():ChildElement
completeproperty 
complete:Boolean

Indicates whether or not the childElement parameter's complete persisted property should be set to true when the event returns.

All players that dispatch the CueEvent event object store the value of this property as the ChildElement object's complete persisted property when execution returns to the player. Always use the event's complete property value instead of the ChildElement object's complete persisted property.


Implementation
    public function get complete():Boolean
    public function set complete(value:Boolean):void
currentPositionproperty 
currentPosition:Number  [read-only]

The value of the position property of the ChildElement object that triggered the event.


Implementation
    public function get currentPosition():Number
Constructor Detail
CueEvent()Constructor
public function CueEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, sb:Storyboard = null, currentPosition:Number = -1, childElement:ChildElement = null, complete:Boolean = true)

Creates a new instance of a CueEvent object.

Parameters
type:String — The type of the event. Event listeners can access this information through the inherited type property.
 
bubbles:Boolean (default = false) — Determines whether the event object participates in the bubbling phase of the event flow. Event listeners can access this information through the inheritied bubbles property.
 
cancelable:Boolean (default = false) — Determines whether the event object can be canceled. Event listeners can access this information through the inherited cancelable property.
 
sb:Storyboard (default = null) — The Storyboard object assigned to the target. Event listeners can access this information through the inherited sb property.
 
currentPosition:Number (default = -1) — The value of the position property of the ChildElement object that triggered the event. Event listeners can access this information through the currentPosition property.
 
childElement:ChildElement (default = null) — The ChildElement object that triggered the event. Event listeners can access this information through the childElement property.
 
complete:Boolean (default = true) — Indicates whether or not the childElement parameter's complete persisted property should be set to true when the event returns. Event listeners can access this information through the complete property.
Method Detail
clone()method
override public function clone():Event

Duplicates an instance of the event object.

Returns a new CueEvent object that is a copy of the original instance of the CueEvent object. You do not normally call clone(); the EventDispatcher class calls it automatically when you redispatch an event--that is, when you call dispatchEvent(event) from a handler that is handling event.

Returns
Event — A new CueEvent object that is identical to the original.
toString()method 
override public function toString():String

Returns a string containing all the properties of the CueEvent object. The string is in the following format:

[CueEvent type=value bubbles=value cancelable=value eventPhase=value sb=value currentPosition=value childElement=value complete=value]

Returns
String — A string containing all the properties of the CueEvent object.
Constant Detail
CUEConstant
public static const CUE:String = cue

The CueEvent.CUE constant defines the value of the type property of an cue event object. This event has the following properties:

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
currentTargetThe object that is actively processing the Event object with an event listener.
targetThe object that raised the event.
sbThe Storyboard object assigned to the target.
currentPositionThe value of the position property of the ChildElement object that triggered the event.
childElementThe ChildElement object that triggered the event.
completeIndicates whether or not the childElement parameter's complete persisted property should be set to true when the event returns.