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.

Network s<strong>and</strong>box access from the local-trusted or local-with-networking s<strong>and</strong>box requires<br />

permission from the website via a cross-domain policy file.<br />

For more information, see the following:<br />

The Flash Player 9 Security white paper at http://www.adobe.com/go/fp9_0_security<br />

The Flash Player 8 Security-Related API white paper at http://www.adobe.com/go/<br />

fp8_security_apis<br />

Availability<br />

ActionScript 1.0; Flash Player 7<br />

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

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

Parameters<br />

name:Object - The name of an FLV file to play, in quotation marks. Both http:// <strong>and</strong> file://<br />

formats are supported; the file:// location is always relative to the location of the SWF file.<br />

start:Number -<br />

len:Number -<br />

reset:Object -<br />

Example<br />

The following example illustrates some ways to use the NetStream.play() method. You can<br />

play a file that is on a user's computer. The joe_user directory is a subdirectory of the<br />

directory where the SWF is stored. And, you can play a file on a server:<br />

// Play a file that is on the user's computer.<br />

my_ns.play("file://joe_user/flash/videos/lectureJune26.flv");<br />

// Play a file on a server.<br />

my_ns.play("http://someServer.someDomain.com/flash/video/<br />

orientation.flv");<br />

seek (NetStream.seek method)<br />

public seek(offset:Number) : Void<br />

Seeks the keyframe closest to the specified number of seconds from the beginning of the<br />

stream. Playback resumes when this location is reached.<br />

Availability<br />

ActionScript 1.0; Flash Player 7<br />

512 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!