Packagecom.dwuser.ss4.pseudoStyleClasses.subEffectReferenceClasses
Classpublic class Effect
SubclassesMaskEffect, SoundEffect, TweenEffect

This class is used to define shared properties for various sub-effects. This class is part of the EffectLibrary sub-effect documentation. It is a dummy class used only to document the supported parameters for a given sub-effect node.

See also

com.dwuser.ss4.managers.EffectLibrary


Public Properties
 PropertyDefined by
  duration : Number
Duration of the effect in milliseconds.
Effect
  repeatCount : Number
Number of times to repeat the effect.
Effect
  repeatDelay : Number
Amount of time, in milliseconds, to wait before repeating the effect.
Effect
  startDelay : Number
Amount of time, in milliseconds, to wait before starting the effect.
Effect
Public Methods
 MethodDefined by
  
Effect
Property detail
durationproperty
public var duration:Number

Duration of the effect in milliseconds.

For a repeated effect, the duration property specifies the duration of a single instance of the effect. Therefore, if an effect has a duration property set to 2000, and a repeatCount property set to 3, the effect takes a total of 6000 ms (6 seconds) to play.

repeatCountproperty 
public var repeatCount:Number

Number of times to repeat the effect. Possible values are any integer greater than or equal to 0. A value of 1 means to play the effect once. A value of 0 means to play the effect indefinitely.

The default value is 1

repeatDelayproperty 
public var repeatDelay:Number

Amount of time, in milliseconds, to wait before repeating the effect. Possible values are any integer greater than or equal to 0.

The default value is 0

startDelayproperty 
public var startDelay:Number

Amount of time, in milliseconds, to wait before starting the effect. Possible values are any int greater than or equal to 0. If the effect is repeated by using the repeatCount property, the startDelay is only applied to the first time the effect is played.

The default value is 0

Constructor detail
Effect()constructor
public function Effect()