Tutorials, extensions, and source files for ActionScript, Flash, and other Adobe products.

 

senocular.com ActionScript Library

EaseMethod.as

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
 * EaseMethod 
 *
 * Base class for all other ease methods
 * Used directly it provides a linear (no) ease
 */
package com.senocular.motion {

	import flash.events.EventDispatcher;

	internal class EaseMethod extends EventDispatcher {
		
		/**
		 * Constructor 
		 */
		public function EaseMethod() {}
		
		/**
		 * call
		 * overridden by subclasses to apply ease to t
		 */
		public function call(t:Number):Number {
			return t;
		}
	}
}