This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
You can open/play the swf file with Flash Player exe
earthquake (2)
FPS increasing and decreasing
A simple code that allows you to set different FPS for each separate clip.1023 downloads, 15982 views
Comments
You need to login to post a comment.
Does this work when you load a movie into another movie? Its just that i have a movie that loads in another and i want the one loaded in to be 50fps but it doesnt seem to speed up.
Where would i put the prototype code? in the root of the loading movie or the root of the loaded movie?
great work
I used something similar in the past, and each time the movieClip was "reload", the FPS was duplicate... from 20, it was then 40, and 60... Have you ever had a problem like that with your code ? I hope not because this is very usefull, and i would be happy to finally have one that work fine.
Thanks!
It is really good work!!!
nice coding !
nice but maybe you put a little to less effort into the interface ;-)
5/10
nice work... 10/10
Thanks
nice thinking man.
It works fine, but retyping it every time I'm gonna use it in a project is to much work for me (I am one of those lasy people :-p ) So I've changed it into a class :-D can I upload it somewhere?
hi earthquake i thank you for your anwser but your code is incomplete ... and it generats errors.
Thanks
parpar;
You can use this code for stopping after 1 loop
MovieClip.prototype.fpshizi = function(fps) {
this.stop();
if (this.fpsayi != undefined) {
clearInterval(this.fpsayi);
delete this.fpsayi;
}
this.nxt = function(ptr) {
if (ptr._currentframe == ptr._totalframes) {
stop();
}
else if (ptr._currentframe<ptr._totalframes) {
ptr.nextFrame();
} else {
ptr.gotoAndStop(1);
}
updateAfterEvent();
};
this.fpsayi = setInterval(this.nxt, Math.round(1000/fps), this);
};
its very good , just what i was llooking for. thanks
but i have 1 question, how do you make it stop after 1 loop ?
stop(); action does not work
interesante
Its good because I heard many people ask how to change FPS of a single clip and not in complete SWF file.