View Full Version : frame rate and bytes based pre loaders
flakedb
05-31-2003, 03:12 AM
If you have a movie at 24 fps and load in a movie @ 12fps what speen is the movie loaded in going to play at.
also why am I having problem with bytes based pre-loaders on movies I load into other movies.
_DB
sneeuwitje
05-31-2003, 08:59 PM
The loaded movie will play at it's own framerate but you can test:
put dynamic textField variable: "Fps" visible on _root, this code on your loading Mc
onClipEvent (enterFrame) {
if (this.timer < getTimer() && this._totalframes > 1) { // assuming the Mc you load into has only 1 frame
this.timer = getTimer() + 1000; // NOT EXACTLY (!!) every second
_root.Fps = this._currentframe-this.prev_frame;
this.prev_frame = this._currentframe;
//trace("Fps = "+_root.Fps);
}
}
this will calculate the frames played in just about one second. So if your connection is not troubled, Fps will display 23, 24 or 25 for 24 frames/s, 11, 12, 13 for 12 f/s.
you can trace Fps to get a list of frames loaded per second
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.