Class com.bumpslide.util.FTween

com.bumpslide.util.FTween

Description

FTween FTween is a target-based tweening utility.

Simple usage: FTween.ease( my_mc, '_x', 200 );

Tweening multiple properties: FTween.spring( my_mc, ['_x', '_y'], [_xmouse, _ymouse]);

Adjusting config options: var ft:FTween = FTween.ease( my_mc, '_rotation', 45.6 ); ft.KEEP_ROUNDED = false;

Stopping Tweens: FTween.stopTweening( my_mc ); // stops all tweens FTween.stopTweening( my_mc, '_x' ); // stops _x tweens see com.bumpslide.example.ftween for more examples

Field Index

addListener, KEEP_ROUNDED, MAX_TWEEN_TIME, MIN_DELTA, MIN_VELOC, removeListener, UPDATE_MS, USE_FRAMES

Method Index

new FTween()

ease(), smooth(), spring(), stopTweening(), toString()

Constructor Detail

FTween

function FTween(mc)

Field Detail

MIN_DELTA

MIN_DELTA

MIN_VELOC

MIN_VELOC

KEEP_ROUNDED

KEEP_ROUNDED

USE_FRAMES

USE_FRAMES

UPDATE_MS

UPDATE_MS

MAX_TWEEN_TIME

MAX_TWEEN_TIME

addListener

public addListener:Function

removeListener

public removeListener:Function

Method Detail

ease

static public function ease(mc:MovieClip, props, targets, easeFactor:Number):FTween

Tweens movie clips properties using simple easing

Parameters

mc
easeFactor

spring

static public function spring(mc:MovieClip, props, targets, springValue:Number, friction:Number)

Tweens using a spring behavior

Parameters

mc
springValue
friction

smooth

static public function smooth(mc:MovieClip, props, targets, easeFactor:Number, maxVeloc:Number)

Smooth easing for scrollbars and such Uses easing, but caps the speed at a given max.

Parameters

mc
easeFactor

stopTweening

static public function stopTweening(mc, prop):Boolean

Stop any tweens on an mc optional param (prop) triggers a tween stop of only that property returns false if mc was not being tweened

toString

function toString()