|
-
Senior Member
Frame Rate problem
I am sorry if this has been answered before. Couldn't find anyhelp
i am loading a swf into a container. In this swf i have a movie clip that the frame rate is 8fps. But when it loads into the main movie it reverts back to the 21fps of main movie..
How can I make the loaded swf retain the frame rate?
The reason is I am scrolling through some photos and they end up goign way to fast in the main movie.. here is the link to see what I mean.. Pictures on the center top..
Website
-
ReMember
Hi
The framerate of loaded swf can not, to the best of my knowledge, be any different than the framrate of the main swf.
You can however adjust the frequncy of functions using the setInterval..like this.
Code:
setInterval(fadeFunction, 1000);
function fadeFunction(){
this._alpha++
}
this, placed in the loaded swf, will increase the alpha with 1 every second (the "1000" is milliseconds between runnig the functin fadeFunction()
the setInterval does not depend on the frame rate so it should work fine...
This is the only work around having swf with different tempoes I know...... for myself I always use 24 fps then its easy to load old projects into new ones..
-
Senior Member
thanks gobbles for the reply...
I forgot to add that the photos that rotate through are a movie clip in that swf. Does this make a difference? and do I put that action on the first frame of the loaded swf or in the movie clip itself?
thanks again
-
ReMember
Make a function for fading, put it in the first frame of the movie and apply the alpha change to the picture mc
Code:
_root.my_picture_mc._alpha=1
setInterval(fadeFunction, 1000);
function fadeFunction(){
_root.my_picture_mc._alpha*=1.5
}
Like this it will set the alpha to "0" then fade in 
EDIT:Sorry I wrote (alpha) 0* 0.5...that wont get you far....
Last edited by gobbles; 08-17-2005 at 04:39 PM.
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
|