Adobe Flex 2 Language Reference - collected by Jimbob | Back to MY RESOURCES


Packagemx.effects.effectClasses
Classpublic class ParallelInstance
InheritanceParallelInstance Inheritance CompositeEffectInstance Inheritance EffectInstance Inheritance EventDispatcher Inheritance Object

The ParallelInstance class implements the instance class for the Parallel effect. Flex creates an instance of this class when it plays a Parallel effect; you do not create one yourself.

See also

mx.effects.Parallel


Public Properties
 PropertyDefined by
 InheritedclassName : String
The name of the effect class, such as "FadeInstance".
EffectInstance
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedduration : Number
Duration of the effect in milliseconds.
EffectInstance
 Inheritedeffect : Effect
EffectInstance
 InheritedplayheadTime : Number
Current position in time of the effect.
EffectInstance
 InheritedpropertyChanges : PropertyChanges
EffectInstance
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
 InheritedrepeatCount : int
EffectInstance
 InheritedrepeatDelay : int
EffectInstance
 InheritedstartDelay : int
EffectInstance
 InheritedsuspendBackgroundProcessing : Boolean
EffectInstance
 Inheritedtarget : Object
EffectInstance
 InheritedtriggerEvent : Event
EffectInstance
Public Methods
 MethodDefined by
  
Constructor.
ParallelInstance
 Inherited
addChildSet(childSet:Array):void
Adds a new set of child effects to this Composite effect.
CompositeEffectInstance
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
EventDispatcher
 Inherited
Dispatches an event into the event flow.
EventDispatcher
  
end():void
Interrupts any effects that are currently playing, skips over any effects that haven't started playing, and jumps immediately to the end of the composite effect.
ParallelInstance
 Inherited
finishEffect():void
Called by the end() method when the effect finishes playing.
EffectInstance
 Inherited
finishRepeat():void
Called after each iteration of a repeated effect finishes playing.
EffectInstance
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 Inherited
initEffect(event:Event):void
This method is called if the effect was triggered by the EffectManager.
EffectInstance
 Inherited
onTweenEnd(value:Object):void
Used internally to keep track of the value of the playheadTime property.
CompositeEffectInstance
 Inherited
onTweenUpdate(value:Object):void
Used internally to keep track of the value of the playheadTime property.
CompositeEffectInstance
 Inherited
pause():void
Pauses the effect until you call the resume() method.
EffectInstance
 Inherited
play():void
Plays the effect instance on the target.
EffectInstance
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
 Inherited
resume():void
Resumes the effect after it has been paused by a call to the pause() method.
EffectInstance
 Inherited
reverse():void
Plays the effect in reverse, starting from the current position of the effect.
EffectInstance
 Inherited
setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
startEffect():void
Plays the effect instance on the target after the startDelay period has elapsed.
EffectInstance
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Protected Methods
 MethodDefined by
  
onEffectEnd(childEffect:IEffectInstance):void
Each time a child effect of SequenceInstance or ParallelInstance finishes, Flex calls the onEffectEnd() method.
ParallelInstance
Events
 EventSummaryDefined by
 Inherited Dispatched when Flash Player gains operating system focus and becomes active.EventDispatcher
 Inherited Dispatched when Flash Player loses operating system focus and is becoming inactive.EventDispatcher
Constructor detail
ParallelInstance()constructor
public function ParallelInstance(target:Object)

Constructor.

Parameters
target:Object — This argument is ignored for Parallel effects. It is included only for consistency with other types of effects.
Method detail
end()method
public override function end():void

Interrupts any effects that are currently playing, skips over any effects that haven't started playing, and jumps immediately to the end of the composite effect.

onEffectEnd()method 
protected override function onEffectEnd(childEffect:IEffectInstance):void

Each time a child effect of SequenceInstance or ParallelInstance finishes, Flex calls the onEffectEnd() method. For SequenceInstance, it plays the next effect. In ParallelInstance, it keeps track of all the effects until all of them have finished playing. If you create a subclass of CompositeEffect, you must implement this method.

Parameters
childEffect:IEffectInstance





collected by Jimbob 2007.05