Main Page | Package | Index | Help

com.mosesSupposes.fuse

class CustomEasing

Object
  |
  +--com.mosesSupposes.fuse.CustomEasing


class CustomEasing
extends Object

Fuse Kit 2 Copyright (c) 2006 Moses Gunesch, MosesSupposes.com This class must be registered to pass easing Arrays generated by the Custom Easing Tool.

Usage:
The updated Custom Easing Tool differs slightly from its first appearance in lmc_tween - it now generates a simple Array that can be used an easing parameter.

To create and use custom easing you now follow two steps:
  1. Pass the CustomEasing class to ZigoEngine.register or ZigoEngine.simpleSetup during setup.
  2. Use the Custom Easing Tool to generate a named Array, then pass it to any easing parameter in ZigoEngine or Fuse.

    For example if the panel outputs var customEasing:Array = [...];, you can then use customEasing in place of "easeInOutQuad" or other easing string/function, and you can of course rename the variable as needed.


Author:
Easing by Ladislav Zigo

Version:
2.1


Method Summary

static
fromCurve ( t: Number, b: Number, c: Number, d: Number, pl: Array ): Number
Generates custom easing from an array of curve points exported by the Custom Easing Tool.

static
precalced ( t: Number, b: Number, c: Number, d: Number, pl: Array ): Number
Returns the nearest match in an Array of precaculated values, by percent of duration completed.



Method Documentation

fromCurve

static function fromCurve(t: Number,
 b: Number,
 c: Number,
 d: Number,
 pl: Array): Number
Generates custom easing from an array of curve points exported by the Custom Easing Tool.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
pl
Array of precalculated values
Returns:
position

precalced

static function precalced(t: Number,
 b: Number,
 c: Number,
 d: Number,
 pl: Array): Number
Returns the nearest match in an Array of precaculated values, by percent of duration completed.

Parameters:
t
time
b
beginning position
c
total change in position
d
duration of the tween
pl
Array of precalculated values
Returns:
position


The documentation was generated from the following file:


Generated on 1/14/2007 11:31:53 PM