Hello there,
This is the issue,
I want to be able to load external .swf to my main movie, but to the
main is 12 fps and the external 25 fps.
Is this ok?
I mean does the external .swf will keep playing at 25 , besides the
main movie is 12 fps?
Thanks
nope… the movie in _level0 sets the fps. :-\
there are a few threads about this, run a search in the forum and you’ll find out what to do. =)
=)
in this example, the instance myMovieClip would play at 48 fps
setFPS = function (instance) {
instance.nextFrame();
};
setInterval(setFPS, 1000/48, myMovieClip);
So , do i have to put this code on the main movie?
“setFPS = function (instance)”
Does the instance is the name of the .swf after is load in the _level0 ?
Can you explain me more clear this code?
Once, again Kax
You are saving my life !
ok… let’s make it easier.
setFPS = function(instance) {
instance.nextFrame();
};
setInterval(setFPS, 1000/25, this);
you only need to paste the script in the first frame of a MovieClip/swf that should play at 25 fps. you may need to add a stop action as well… not sure.
and the code is very simple, just see setInterval in the as dictionary and you’ll understand it.
So , that way …
I do not need to put a name of the instance?
nope… you don’t need to do that. =)
So, to free my mind
The code will be:
setFPS = function() {
nextFrame();
};
setInterval(setFPS, 1000/25, this);
??
By the way , how do you post here AS and it appears that way?
thanks
system
May 2, 2003, 11:02pm
10
ok… you still the parameter.
setFPS = function(instance) {
instance.nextFrame();
};
setInterval(setFPS, 1000/25, this);
paste it as is in a frame.
and you use [ as ][ /as ] tags.
system
May 2, 2003, 11:06pm
12
no problem, filete. :beam: