Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

different frame rates for movie clips

Status
Not open for further replies.

goldie66

MIS
May 29, 2003
3
GB
Hi,

I am working on an animation where i am using various movie clips. i was wondering if there is a possiblity to play the movie clips with different frame rates, although within one main movie. lets say i want to overlay two of the movieclips but i want them to move in different speed, how do i do that best?

i did the movieclips in a different flash movie using a different frame rate and then importing it into the main movie but they move in the same pace and speed (general rate of 12 fps). i am sure there is a possiblity to do that so please help!

thanks a lot,

net_ta
 
you can't modify the framerate for each of your movieclips.
all you can do is modify the overall framerate (and 12 is pretty low for fluent animations).

firstly i's set the framerate to 31 (since the mac-flashplayer has a bug and will play all framerates between 19 and 30 frames per second at 19 fps).
secondly i't add frames to the tweens in your movieclip so they will move more slowly.

regards

tektips.gif
 
Movie clips framerates can be altered within a main movie.

A main movie's framerate can even be modified on the fly.

Regards,

cubalibre2.gif
 
yes, but as far as i know this workaround won't make it possible to play several movieclips that are positioned in one film in different framerates, or am i wrong?

regards

tektips.gif
 
i agree. you probably cant as all the workarounds are similar in that they use a timer method and i cant see how to have several timer methods working simultaneously
 
You could stick enterFrame events to each clip which advance them at different rates by stopping at targeted frames... you work out the speed for each clip by dividing the document framerate:

advance = function (clip, framerate) {
// time to move?
var move = (count%framerate) ? 0 : 1;
// move
clip.gotoAndStop(clip._currentframe+move);
// advance counter once per frame
count += (clip._name == 'clip1') ? 1 : 0;
};
//initialise counter
_global.count = 0;
//call function
clip1.onEnterFrame = function() {
advance(clip1, 10);
};
clip2.onEnterFrame = function() {
advance(clip2, 20);
};
 
perhaps if you had understood wangbars script you would realise that he gives a workaround. frames per second can only be set in authoring and cannot be changed on the fly using actionscript.
 
certainly i don't want to interfere with your little discussion.
i am just wondering why it is, that most times when both of you answer to the same thread there is a certain gauze of cussedness in the air...

i somehow regret that

regards

tektips.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top