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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

video1.pause()<br />

See also<br />

play (Video.play method), stop (Video.stop method), resume (Video.resume<br />

method)<br />

play (Video.play method)<br />

public play() : Boolean<br />

Calling this method opens a video source <strong>and</strong> begins playback of a video.<br />

Returns<br />

Boolean - A value of true if the mobile device can render the video; otherwise, false.<br />

Example<br />

The following example pauses <strong>and</strong> clears video1.flv, which is playing in a Video object (called<br />

video1).<br />

video1.play( "http://www.macromedia.com/samples/videos/clock.3gp" );<br />

You can also use a Video object on the Stage to play bundled device videos directly from the<br />

library. To do this, you bundle the device video in your application's library. You also assign an<br />

identifier to the video symbol that lets you reference the video symbol with ActionScript. You<br />

can play a device video from the library by passing the symbol's ActionScript identifier to the<br />

Video.play() method, as the following example shows:<br />

placeHolderVideo.play("symbol://ocean_video");<br />

For more information about playing video from the library, see "Playing a bundled video<br />

directly from the library" in Developing Flash Lite <strong>2.x</strong> Applications.<br />

See also<br />

stop (Video.stop method), pause (Video.pause method), resume (Video.resume<br />

method)<br />

resume (Video.resume method)<br />

public resume() : Void<br />

Calling this method resumes playback of the video.<br />

If Video.pause() was previously called, playback begins from the current position. If<br />

Video.stop() was previously called, playback begins from the first frame.<br />

674 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!