03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

currentFps (NetStream.currentFps property)<br />

public currentFps : Number [read-only]<br />

The number of frames per second being displayed. If you are exporting FLV files to be played<br />

back on a number of systems, you can check this value during testing to determine how much<br />

compression to apply when exporting the file.<br />

Availability<br />

ActionScript 1.0; Flash Player 7<br />

NOTE: This property is also supported in Flash Player 6 when used with Flash Media<br />

Server. For more information, see the Flash Media Server documentation.<br />

Example<br />

The following example creates a text field that displays the current number of frames per<br />

second that video1.flv displays.<br />

var connection_nc:NetConnection = new NetConnection();<br />

connection_nc.connect(null);<br />

var stream_ns:NetStream = new NetStream(connection_nc);<br />

my_video.attachVideo(stream_ns);<br />

stream_ns.play("video1.flv");<br />

this.createTextField("fps_txt", this.getNextHighestDepth(), 10, 10, 50,<br />

22);<br />

fps_txt.autoSize = true;<br />

var fps_interval:Number = setInterval(displayFPS, 500, stream_ns);<br />

function displayFPS(my_ns:NetStream) {<br />

fps_txt.text = "currentFps (frames per second):<br />

"+Math.floor(my_ns.currentFps);<br />

}<br />

time (NetStream.time property)<br />

time (NetStream.time property)<br />

public time : Number [read-only]<br />

The position of the playhead, in seconds.<br />

Availability<br />

ActionScript 1.0; Flash Player 7<br />

NOTE: This property is also supported in Flash Player 6 when used with Flash Media<br />

Server. For more information, see the Flash Media Server documentation.<br />

NetStream 503

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!