Packageorg.goasap.utils.customadvance
Classpublic class OnDurationComplete
InheritanceOnDurationComplete Inheritance SequenceAdvance Inheritance PlayableBase Inheritance flash.events.EventDispatcher
ImplementsIUpdatable

A custom advance type that triggers after a specific duration has completed.



Public Properties
 PropertyDefined by
  duration : Number
[read-only] The duration after which advance should occur.
OnDurationComplete
 InheritedplayableID : *
An arbitrary id value for the convenient identification of any instance, automatically set to an instance count by this class.
PlayableBase
  pulseInterval : int
[read-only] The pulse used to monitor the duration.
OnDurationComplete
 Inheritedstate : String
Returns a PlayStates constant.
PlayableBase
Protected Properties
 PropertyDefined by
 Inherited_playRetainer : Dictionary
[static] Memory-management: playable items that do not add themselves to GoEngine should use this property to store references to themselves during play.
PlayableBase
Public Methods
 MethodDefined by
  
OnDurationComplete(seconds:Number, pulseInterval:Number)
OnDurationComplete
  
pause():Boolean
OnDurationComplete
  
resume():Boolean
OnDurationComplete
  
skipTo(seconds:Number):Boolean
OnDurationComplete
  
start():Boolean
OnDurationComplete
  
stop():Boolean
OnDurationComplete
 Inherited
toString():String
Appends the regular toString value with the instance's playableID.
PlayableBase
  
update(currentTime:Number):void
OnDurationComplete
Events
 EventSummaryDefined by
 Inherited Subclasses should call the dispatchAdvance method when the sequence should advance to its next step.SequenceAdvance
Property detail
durationproperty
duration:Number  [read-only]

The duration after which advance should occur.

Implementation
    public function get duration():Number
pulseIntervalproperty 
pulseInterval:int  [read-only]

The pulse used to monitor the duration. Defaults to GoItem.defaultPulseInterval if not specified.

(Note that this system is more accurate than flash.utilss.Timer, especially for pause/resume.)

Implementation
    public function get pulseInterval():int
Constructor detail
OnDurationComplete()constructor
public function OnDurationComplete(seconds:Number, pulseInterval:Number)

Parameters
seconds:Number — The duration after which advance should occur.
 
pulseInterval:Number — The pulse used to monitor the duration. Defaults to GoItem.defaultPulseInterval if not specified.
Method detail
pause()method
public override function pause():Boolean

Returns
Boolean
resume()method 
public override function resume():Boolean

Returns
Boolean
skipTo()method 
public override function skipTo(seconds:Number):BooleanParameters
seconds:Number

Returns
Boolean
start()method 
public override function start():Boolean

Returns
Boolean
stop()method 
public override function stop():Boolean

Returns
Boolean
update()method 
public function update(currentTime:Number):voidParameters
currentTime:Number