Game Development Reference
In-Depth Information
In addition to the Nacqh]n class, the easing package contains five other classes. Table 10-5 describes
all these classes, the methods they contain, and the effect they have on the object that's being
animated.
Table 10-5. Easing classes
Easing class name
Methods it contains
How it behaves
>]_g
a]oaEj
a]oaEjKqp
a]oaKqp
The object reverses when it eases into the motion
and slightly overshoots the target when it eases
out.
>kqj_a
a]oaEj
a]oaEjKqp
a]oaKqp
The object appears to bounce toward the target
when it eases in and bounces against it when it
eases out.
Ah]ope_
a]oaEj
a]oaEjKqp
a]oaKqp
The object wobbles back and forth around the
begin and finish points of the animation.
Jkja
a]oaEj
a]oaEjKqp
a]oaJkja
a]oaKqp
Surprise! No easing! If you don't want any easing,
use Jkja*a]oaJkja. The object simply moves
from the start to finish point without changing its
speed at all. The Jkja class also contains a]oaEj
and a]oaEjKqp methods, but they have the same
effect: none! Why then are they there? They were
added by Adobe engineers for consistency with
the other classes.
Nacqh]n
a]oaEj
a]oaEjKqp
a]oaKqp
The standard easing effect.
Opnkjc
a]oaEj
a]oaEjKqp
a]oaKqp
Very similar to Nacqh]n, except that the effect is
slightly exaggerated.
All the methods of these classes— a]oaEj , a]oaEjKqp , and a]oaKqp —can be supplied
with additional arguments to fine-tune how they behave. Check Adobe's online docu-
mentation at dppl6++dahl*]`k^a*_ki+aj[QO+=O/H?N+Bh]od[-,*,+bh+pn]joepekjo+
a]oejc+l]_g]ca)`ap]eh*dpih for more information if you need it.
 
Search Nedrilad ::




Custom Search