View Full Version : setting FPS in AS
thectrlz
03-31-2003, 07:36 PM
can we set the FPS on a loaded movie?
if i have 2 movies and i'm loading one in another can i set the FPS in the AS like in
onClipEvent(load){
loadMovie("eyecandy.swf",1)
}
set the FPS in there?
littleRichard
03-31-2003, 09:09 PM
you could fake it by setting an interval that dose nothing but jump from one frame to the next.
is this for MX?
shorudan
03-31-2003, 09:20 PM
How do you do that?
For example if I have 2 keyframes on a timeline; 1 with a label "marker1" and the second with a label "marker2". How do I use SetInterval to control to a button say,
GotoAndplay marker2 after 15 seconds?
I read the tutorials but I'm a beginner so it's kinda tough to grasp how to apply Setinterval using functions and all.
Madokan
04-01-2003, 08:25 AM
Just try this:
Movieclip.prototype.play = function(FPS) {
movin = function (pTarget) {
if (pTarget._currentframe == pTarget._totalframes) {
pTarget.gotoAndStop(1);
} else {
pTarget.nextFrame();
}
updateAfterEvent();
};
setInterval(movin, 1000 / FPS, this);
};
// Call (Usage)
mc_simon.play(10);
mc_simon2.play(30);
Have Fun and be inspired.
yours
Matze K.
azaral
04-01-2003, 03:58 PM
or you could implement a TIMER (mc) on marker1 that 'delays' your timeline for 15 seconds then goes to marker2
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.