An Animation that linearly transitions from one value to another and optionally executes a
callback function when the transition is complete. A subclass must implement updateForValue
to change whatever is being animated for the value.
protected var _done:Function
protected var _duration:Number
protected var _from:Number
protected var _to:Number
public function LinearAnimation(from:Number = 0, to:Number = 1, duration:Number = 1, done:Function = null)
Parameters
| from:Number (default = 0 )
|
|
| to:Number (default = 1 )
|
|
| duration:Number (default = 1 )
|
|
| done:Function (default = null )
|
public override function updateAnimation(elapsed:Number):void
Parameters
public function updateForValue(value:Number):void
Parameters
Copyright © 2007-2009 Three Rings Design, Inc.