public currentFps : Number [read-only]
The number of frames per second being displayed. If you are exporting FLV files to be played back on a number of systems, you can check this value during testing to determine how much compression to apply when exporting the file.
ActionScript 1.0; Flash Player 7
The following example creates a text field that displays the current number of frames per second that video1.flv displays.
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);
stream_ns.play("video1.flv");
this.createTextField("fps_txt", this.getNextHighestDepth(), 10, 10, 50, 22);
fps_txt.autoSize = true;
var fps_interval:Number = setInterval(displayFPS, 500, stream_ns);
function displayFPS(my_ns:NetStream) {
fps_txt.text = "currentFps (frames per second): "+Math.floor(my_ns.currentFps);
}
time (NetStream.time property)