-
Help with Dynamic Framerates
Hi,
I have built a website consisting of several pages which are navigated by buttons, with stops and gotoAndplays controlling the navigation. On these pages are movieclips which play. I want to adjust the framerates of these movieclips without affecting the whole site.
I've had partial success, the piece of scipting below when placed in line with the keyframe the movie clip is on does indeed change the framerate. The problem comes when I reload the page as the effect becomes cumulative (24fps becomes 48fps). Can anybody see a way to solve this so the set framerates remain no matter how much you navigate the site?
function setFrameRate(frameRate:Number):Void {
var timelineFaster:Function = function () {
me.nextFrame();
updateAfterEvent();
};
var me:MovieClip = this;
clearInterval(me.tweenFaster);
me.tweenFaster = setInterval(timelineFaster, frameRate);
}
MovieClip.prototype.setFrameRate = setFrameRate;
MovieClip.prototype.tweenFaster = new Number();
//
//
clip1.setFrameRate(60);
clip2.setFrameRate(50);
clip3.setFrameRate(50);
clip4.setFrameRate(70);
clip5.setFrameRate(40);
Kind regards,
James
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|