Packagepegas.transitions
Classpublic class TweenEntry
ImplementsCloneable

A basic TweenEntry used in the Tween and TweenLite class.



Public Properties
 PropertyDefined by
  begin : Number
Defines the begin value of the value.
TweenEntry
  change : Number
[read-only] (read-only) Indicates the change value of this tween entry.
TweenEntry
  easing : Function
(read-write) Defines the easing method reference of this entry.
TweenEntry
  finish : Number
(read-write) Defines the finish value of the entry.
TweenEntry
  prevPos : Number
The previous position of the entry.
TweenEntry
  prop : String
The property of the tween entry.
TweenEntry
Public Methods
 MethodDefined by
  
TweenEntry(prop:String = null, easing:Function = null, begin:Number, finish:Number)
Creates a new TweenEntry instance.
TweenEntry
  
clone():*
Returns a shallow copy of this entry.
TweenEntry
  
getPosition(t:Number, d:Number):Number
Returns the current position of this entry with the specified time value and with the specified duration.
TweenEntry
  
noEasing(t:Number, b:Number, c:Number, d:Number):Number
[static] The default static easing used by this tween entry if the easing property is empty.
TweenEntry
  
setPosition(value:Number):Number
Sets the position of the tween entry with the specified value.
TweenEntry
  
toString():String
Returns the String representation of the object.
TweenEntry
Property detail
beginproperty
public var begin:Number

Defines the begin value of the value.

changeproperty 
change:Number  [read-only]

(read-only) Indicates the change value of this tween entry.

Implementation
    public function get change():Number
easingproperty 
easing:Function  [read-write]

(read-write) Defines the easing method reference of this entry.

Implementation
    public function get easing():Function
    public function set easing(value:Function):void
finishproperty 
finish:Number  [read-write]

(read-write) Defines the finish value of the entry.

Implementation
    public function get finish():Number
    public function set finish(value:Number):void
prevPosproperty 
public var prevPos:Number

The previous position of the entry.

propproperty 
public var prop:String

The property of the tween entry.

Constructor detail
TweenEntry()constructor
public function TweenEntry(prop:String = null, easing:Function = null, begin:Number, finish:Number)

Creates a new TweenEntry instance.

Parameters
prop:String (default = null) — the property string value.
 
easing:Function (default = null) — the easing function of the tween entry.
 
begin:Number — the begin value.
 
finish:Number — the finish value.
Method detail
clone()method
public function clone():*

Returns a shallow copy of this entry.

Returns
* — a shallow copy of this entry.
getPosition()method 
public function getPosition(t:Number, d:Number):Number

Returns the current position of this entry with the specified time value and with the specified duration.

Parameters
t:Number — The time position of the motion.
 
d:Number — The duration value of the motion.

Returns
Number — the current position of this entry with the specified time value and with the specified duration.
noEasing()method 
public static function noEasing(t:Number, b:Number, c:Number, d:Number):Number

The default static easing used by this tween entry if the easing property is empty.

Parameters
t:Number
 
b:Number
 
c:Number
 
d:Number

Returns
Number
setPosition()method 
public function setPosition(value:Number):Number

Sets the position of the tween entry with the specified value.

Parameters
value:Number

Returns
Number
toString()method 
public function toString():String

Returns the String representation of the object.

Returns
String — the String representation of the object.