tweenTo
Usage
public function tweenTo($tl:Point, $tr:Point, $br:Point, $bl:Point, $tweenFunc:Function, $time:Number):void
Description
Tweens the distortion. As with the constructor, the point values are relative to the holder clip, NOT the stage.
The tweenTo method dispatches two events:
- Event.INIT: Dispatched when the tweening begins
- Event.COMPLETE: Dispatched when the tweening ends
Parameters
- $tl
- The top left point to end the tween at
- $tr
- The top right point to end the tween at
- $br
- The bottom right point to end the tween at
- $bl
- The bottom left point to end the tween at
- $tweenFunc
- The easing function to use in the tween
- $time
- The duration, in seconds, of the tween
Returns
void
reset
Usage
public function reset($tl:Point, $tr:Point, $br:Point, $bl:Point):void
Description
Resets the bitmap to the specified points.
Parameters
- $tl
- The top left point to use in the distortion
- $tr
- The top right point to use in the distortion
- $br
- The bottom right point to use in the distortion
- $bl
- The bottom left point to use in the distortion
Returns
void
destroy
Usage
public function destroy():void
Description
Cleans up the DistortionTweener for garbage collection.
Returns
Nothing