Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The Power class defines the easing functionality using a polynomial expression.
Easing consists of two phases: the acceleration, or ease in phase,
followed by the deceleration, or ease out phase.
The rate of acceleration and deceleration is based on
the
exponent
property.
The higher the value of the
exponent
property,
the greater the acceleration and deceleration.
Use the
easeInFraction
property to specify the percentage
of an animation accelerating.
Show MXML Syntax
Hide MXML Syntax The <s:Power>
tag
inherits all of the tag attributes of its of its superclass,
and adds the following tag attributes:
<s:Power
id="ID"
exponent="2"
/>
exponent:Number
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The exponent used in the easing calculation.
The higher the value of the exponent
property,
the greater the acceleration and deceleration.
For example, to get quadratic behavior, set exponent
to 2.
To get cubic behavior, set exponent
to 3.
The default value is 2
.
Implementation public function get exponent():Number
public function set exponent(value:Number):void
public function Power(easeInFraction:Number = 0.5, exponent:Number = 2)
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Constructor.
Parameters | easeInFraction:Number (default = 0.5 ) — The fraction of the overall duration
in the acceleration phase, between 0.0 and 1.0.
|
|
| exponent:Number (default = 2 ) — The exponent used in the easing calculation.
|
Mon Jul 9 2012, 07:18 PM -04:00