Packagecom.desuade.motion.controllers
Classpublic dynamic class ColorKeyframeContainer
InheritanceColorKeyframeContainer Inheritance KeyframeContainer Inheritance Object

Language Version : ActionScript 3
Since : 02.07.2009
Runtime Versions : AIR 1.0, Flash Player 9.0.0

Manages and hold keyframes specifically for color-tweening.



Public Properties
 PropertyDefined By
 Inheritedlength : int
[read-only] How many keyframes are in the container.
KeyframeContainer
 Inheritedprecision : int
How many decimal points the random spread values have.
KeyframeContainer
 InheritedtweenClass : Class
Which tween class to use for creating the tweens.
KeyframeContainer
Public Methods
 MethodDefined By
  
ColorKeyframeContainer(tweenClass:Class = null)
Creates a new ColorKeyframeContainer.
ColorKeyframeContainer
 Inherited
add(keyframe:Keyframe, label:String = null):String
Adds a keyframe to the container.
KeyframeContainer
 Inherited
empty():Object
Removes all keyframes between the begin and end keyframes from the container.
KeyframeContainer
 Inherited
flatten(value:*, extras:Object = null):void
This "flattens" the container to the given value, setting all the 'value' and 'extra' properties in each keyframe to the same value, essentially removing any tweens. Note: this always happen: the ease property becomes 'linear' and the spread becomes '0'.
KeyframeContainer
 Inherited
Configures the KeyframeContainer based on the values in the XML and creates child Keyframes.
KeyframeContainer
 Inherited
Creates an Array with all of the labels of the keyframes, from begin to end
KeyframeContainer
 Inherited
isFlat():Boolean
Determines if the KeyframeContainer is flat.
KeyframeContainer
 Inherited
toLabeledArray(sort:Boolean = false):Array
Creates an unsorted Array of all the objects in the KeyframeContainer
KeyframeContainer
 Inherited
toXML():XML
This creates an XML object that represents a KeyframeContainer and all it's Keyframes.
KeyframeContainer
Constructor Detail
ColorKeyframeContainer()Constructor
public function ColorKeyframeContainer(tweenClass:Class = null)

Creates a new ColorKeyframeContainer. This is the core of a MotionController, as it holds, configures, and manages all keyframes, and generates the tween objects.

This works the same as a regular KeyframeContainer, except it's internals are specific for color-tweening.

This can be created independently of a controller and shared among multiple ones.

Parameters
tweenClass:Class (default = null) — The class of tweening engine to use for color. Null will use the default colorTweenClass from the MotionController static class.