PDA

View Full Version : Fast forward



daytonatkf
September 8th, 2006, 01:26 AM
what are the script or function to fast forward a animation? i dont want to use the setting in the frame rate in the flash window editor there. Lets say a animation in real time took 20 seconds to run, i want to make it to 5 seconds to run the whole animation, any solution? thanks for reply

SacrificialLamb
September 8th, 2006, 04:10 AM
you could have some thing like in a enterframe on the mane time line.
if (_currentframe<end){
_root.animation.gotoAndPlay(_root._currentframe+4)
}
i don't know if there is a really thing for it

daytonatkf
September 8th, 2006, 04:53 AM
i doesn't work, any more idea?

SacrificialLamb
September 8th, 2006, 06:59 AM
Did you edit the code at all. Because it was more of an idea than workable code. the code is more like;

onEnterFrame = function(){
if (_root.animation._currentframe<250){
_root.animation.gotoAndPlay(_root.animation._curre ntframe+4)
}
}
But I thought you could work that bit out for your self…
and I know that work's because i just tried it.
make the animation named animation on the stage and have it on _root. Not in any other MC. And change 250 to the max number of frames you want it to play i.e. the last frame in the animation
The code goes on the frame that the animation is on

daytonatkf
September 8th, 2006, 11:20 PM
my animation are using action script. How it work , is it plus more, then the animation will run faster?

pips
September 9th, 2006, 06:21 AM
my animation are using action script. How it work , is it plus more, then the animation will run faster?

ActionScript can`t change fps in the runtime for now... that`s the main problem

engghost
September 9th, 2006, 11:38 AM
you can wait till ActionScript 3 been released
there , you can cgange tje fps during the movie,
just wait