Packagevegas.process.display
Classpublic class SwitchBackgroundGradientColor
InheritanceSwitchBackgroundGradientColor Inheritance CoreTransition Inheritance CoreAction Inheritance Task Inheritance Object

This process switch the fill gradient color of the specified background.



Public Properties
 PropertyDefined By
  alphas : Array
The array of all alphas to change in the gradient fill.
SwitchBackgroundGradientColor
  background : Background
The background reference.
SwitchBackgroundGradientColor
 InheritedchangeIt : Signaler
This signal emit when the notifyChanged method is invoked.
CoreAction
 InheritedclearIt : Signaler
This signal emit when the notifyCleared method is invoked.
CoreAction
  colors : Array
The array of all colors to change in the gradient fill.
SwitchBackgroundGradientColor
  duration : Number
Sets the duration of the tweened animation in frames or seconds.
SwitchBackgroundGradientColor
  easing : Function
Defines the easing method reference of this process.
SwitchBackgroundGradientColor
 InheritedfinishIt : Signaler
This signal emit when the notifyFinished method is invoked.
Task
 Inheritedid : *
Indicates the id value of this object.
CoreTransition
 InheritedinfoIt : Signaler
This signal emit when the notifyInfo method is invoked.
CoreAction
 Inheritedlogger : Logger
Determinates the internal Logger reference of this Loggable object.
Task
 Inheritedlooping : Boolean
The flag to determinate if the Action object is looped.
CoreAction
 InheritedloopIt : Signaler
This signal emit when the notifyLooped method is invoked.
CoreAction
 InheritedpauseIt : Signaler
This signal emit when the notifyPause method is invoked.
CoreAction
 Inheritedphase : String
[read-only] The current phase of the action.
Task
 InheritedprogressIt : Signaler
This signal emit when the notifyProgress method is invoked.
CoreAction
  ratios : Array
The array of all ratios to change in the gradient fill.
SwitchBackgroundGradientColor
 InheritedresumeIt : Signaler
This signal emit when the notifyResumed method is invoked.
CoreAction
 Inheritedrunning : Boolean
[read-only] Indicates true if the process is in progress.
Task
 InheritedstartIt : Signaler
This signal emit when the notifyStarted method is invoked.
Task
 InheritedstopIt : Signaler
This signal emit when the notifyStopped method is invoked.
CoreAction
 InheritedtimeoutIt : Signaler
This signal emit when the notifyTimeOut method is invoked.
CoreAction
  useSeconds : Boolean
Defines if the Motion used seconds or not.
SwitchBackgroundGradientColor
Public Methods
 MethodDefined By
  
SwitchBackgroundGradientColor(background:Background = null, colors:Array = null, alphas:Array = null, ratios:Array = null, easing:Function = null, duration:Number = 1, useSeconds:Boolean = true)
Creates a new SwitchBackgroundGradientColor instance.
SwitchBackgroundGradientColor
  
clone():*
[override] Returns a shallow copy of this object.
SwitchBackgroundGradientColor
 Inherited
equals(o:*):Boolean
Compares the specified object with this object for equality.
CoreTransition
  
interpolate(color1:Number, color2:Number, level:Number = 1):Number
Interpolate the color and returns a new RGB object.
SwitchBackgroundGradientColor
 Inherited
isLocked():Boolean
Returns true if the object is locked.
Task
 Inherited
lock():void
Locks the object.
Task
 Inherited
Notify when the process is changed.
CoreAction
 Inherited
Notify when the process is cleared.
CoreAction
 Inherited
Notify an ActionEvent when the process is finished.
Task
 Inherited
notifyInfo(info:*):void
Notify a specific information when the process is changed.
CoreAction
 Inherited
Notify when the process is looped.
CoreAction
 Inherited
Notify when the process is paused.
CoreAction
 Inherited
Notify when the process is in progress.
CoreAction
 Inherited
Notify when the process is resumed.
CoreAction
 Inherited
Notify an ActionEvent when the process is started.
Task
 Inherited
Notify when the process is stopped.
CoreAction
 Inherited
Notify when the process is out of time.
CoreAction
 Inherited
resume():void
Resume this transition.
CoreTransition
  
run(... arguments):void
[override] Run the process.
SwitchBackgroundGradientColor
  
start():void
[override] Starts the transition.
SwitchBackgroundGradientColor
  
stop():void
[override] Stops the transition.
SwitchBackgroundGradientColor
 Inherited
unlock():void
Unlocks the display.
Task
Protected Methods
 MethodDefined By
 Inherited
setRunning(b:Boolean):void
Changes the running property value.
Task
Property Detail
alphasproperty
alphas:Array

The array of all alphas to change in the gradient fill.


Implementation
    public function get alphas():Array
    public function set alphas(value:Array):void
backgroundproperty 
background:Background

The background reference.


Implementation
    public function get background():Background
    public function set background(value:Background):void
colorsproperty 
public var colors:Array

The array of all colors to change in the gradient fill.

durationproperty 
duration:Number

Sets the duration of the tweened animation in frames or seconds.


Implementation
    public function get duration():Number
    public function set duration(value:Number):void
easingproperty 
easing:Function

Defines the easing method reference of this process.


Implementation
    public function get easing():Function
    public function set easing(value:Function):void
ratiosproperty 
ratios:Array

The array of all ratios to change in the gradient fill.


Implementation
    public function get ratios():Array
    public function set ratios(value:Array):void
useSecondsproperty 
useSeconds:Boolean

Defines if the Motion used seconds or not.


Implementation
    public function get useSeconds():Boolean
    public function set useSeconds(value:Boolean):void
Constructor Detail
SwitchBackgroundGradientColor()Constructor
public function SwitchBackgroundGradientColor(background:Background = null, colors:Array = null, alphas:Array = null, ratios:Array = null, easing:Function = null, duration:Number = 1, useSeconds:Boolean = true)

Creates a new SwitchBackgroundGradientColor instance.

Parameters
background:Background (default = null) — The background reference to switch.
 
colors:Array (default = null) — The array of all colors to change in the gradient fill.
 
alphas:Array (default = null) — The array of all alphas to change in the gradient fill.
 
ratios:Array (default = null) — The array of all ratios to change in the gradient fill.
 
easing:Function (default = null) — The easing equation reference.
 
duration:Number (default = 1) — A number indicating the length of time or number of frames for the tween motion.
 
useSeconds:Boolean (default = true) — Indicates if the duration is in seconds.
Method Detail
clone()method
override public function clone():*

Returns a shallow copy of this object.

Returns
* — a shallow copy of this object.
interpolate()method 
public function interpolate(color1:Number, color2:Number, level:Number = 1):Number

Interpolate the color and returns a new RGB object.

Parameters

color1:Number — The RGB reference used to interpolate the current RGB object.
 
color2:Number — The level of the interpolation as a decimal, where 0 is the start and 1 is the end.
 
level:Number (default = 1)

Returns
Number — The interpolate RGB reference of the current color.
run()method 
override public function run(... arguments):void

Run the process.

Parameters

... arguments

start()method 
override public function start():void

Starts the transition.

stop()method 
override public function stop():void

Stops the transition.