(Beta)
Package | fl.motion |
Class | public class FunctionEase |
Inheritance | FunctionEase ![]() |
Implements | ITween |
Language Version: | ActionScript 3.0 |
Product Version: | Flash CS3 |
Runtime Versions: | Flash Player 9.0.28.0, AIR 1.0 |
Related API Elements
Public Properties
Property | Defined By | ||
---|---|---|---|
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance. | Object |
Public Methods
Method | Defined By | ||
---|---|---|---|
![]() |
Indicates whether an object has a specified property defined. | Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | |
![]() |
Indicates whether the specified property exists and is enumerable. | Object | |
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
![]() |
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | |
![]() |
Returns the string representation of the specified object. | Object | |
![]() |
Returns the primitive value of the specified object. | Object |
Property Detail
Constructor Detail
Method Detail
Examples How to use this example
FunctionEaseExample.as
This example uses the Back effect from the fl.motion.easing package
as a custom function ease:
import fl.motion.Animator; //// These two lines must be added to use <FunctionEase> import fl.motion.easing.*; // import the easing classes fl.motion.easing.Back; // add a reference to every easing class you want to use //// var mc2_xml:XML = <Motion duration="30" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*"> <source> <Source frameRate="30" x="85.05" y="90.05" scaleX="0.999" scaleY="0.999" rotation="0" elementType="movie clip" instanceName="mc2" symbolName="BoxSymbol" linkageID="Box" class="Box"> <dimensions> <geom:Rectangle left="-39" top="-52" width="77" height="97"/> </dimensions> <transformationPoint> <geom:Point x="0.5019480519480519" y="0.5010309278350515"/> </transformationPoint> </Source> </source> <Keyframe index="0"> <tweens> <FunctionEase functionName="fl.motion.easing.Back.easeInOut"/> </tweens> </Keyframe> <Keyframe index="29" x="330" y="0"/> </Motion>; var mc2_animator:Animator = new Animator(mc2_xml, mc2); mc2_animator.play();
Wed Nov 21 2018, 06:34 AM -08:00