View Ladislav Zigo's profile on LinkedIn

 
laco.wz.cz
Web



MovieClip.frameTo()

Availability

Flash Player 6.

Usage

my_mc.frameTo(frame, seconds, animtype, delay, callback, extra1, extra2)

Parameters

frame end frame of movieclip timeline
all other parameters work as in tween() method

Returns

None

Description

shortcut method; tweens frames in timeline, my_mc in folowing example must have 20 frames

// tween timeline to frame 20 in 1 second with easeoutbounce
my_mc.frameTo(20,1,"easeoutbounce");
// tween timeline back to frame 1 in 0.5 seconds
my_mc.frameTo(1,.5,"linear",1)


download | examples | installation | custom Easing Tool | links