API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class CustomEase

Package | com.greensock.easing
Class | public class CustomEase

Facilitates creating custom bezier eases with the GreenSock Custom Ease Builder tool. It's essentially a place to store the bezier segment information for each ease instead of recreating it inside each function call which would slow things down. Please use the interactive tool available at http://blog.greensock.com/customease/ to generate the necessary code.
Copyright 2011, GreenSock. All rights reserved. This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for corporate Club GreenSock members, the software agreement that was issued with the corporate membership.

Public Methods

| Method | Defined by
--- | --- | ---
|  | CustomEase(name:String, segments:Array) | CustomEase
|  | byName(name:String):Function [static] | CustomEase
|  | create(name:String, segments:Array):Function [static] | CustomEase
|  | destroy():void | CustomEase
|  | ease(time:Number, start:Number, change:Number, duration:Number):Number | CustomEase

Public Constants

| Constant | Defined by
--- | --- | ---
|  | VERSION : Number = 1.01 [static] | CustomEase

Constructor detail

CustomEase | () | constructor

`public function CustomEase(name:String, segments:Array)`Parameters

| `name:String`
| `segments:Array`

Method detail

byName | () | method

`public static function byName(name:String):Function` Parameters

| `name:String`

Returns

| `Function`

create | () | method |

`public static function create(name:String, segments:Array):Function` Parameters

| `name:String`
| `segments:Array`

Returns

| `Function`

destroy | () | method |

`public function destroy():void`

ease | () | method |

`public function ease(time:Number, start:Number, change:Number, duration:Number):Number` Parameters

| `time:Number`
| `start:Number`
| `change:Number`
| `duration:Number`

Returns

| `Number`

Constant detail

VERSION | constant

`public static const VERSION:Number = 1.01`