Flash CS3 Documentation |
|||
| Flash Lite 2.x ActionScript Language Reference > ActionScript classes > Video > play (Video.play method) | |||
public play() : Boolean
Calling this method opens a video source and begins playback of a video.
Boolean - A value of true if the mobile device can render the video; otherwise, false.
The following example pauses and clears video1.flv, which is playing in a Video object (called video1).
video1.play( "http://www.macromedia.com/samples/videos/clock.3gp" );
You can also use a Video object on the Stage to play bundled device videos directly from the library. To do this, you bundle the device video in your application's library. You also assign an identifier to the video symbol that lets you reference the video symbol with ActionScript. You can play a device video from the library by passing the symbol's ActionScript identifier to the Video.play() method, as the following example shows:
placeHolderVideo.play("symbol://ocean_video");
For more information about playing video from the library, see "Playing a bundled video directly from the library" in Developing Flash Lite 2.x Applications.
stop (Video.stop method), pause (Video.pause method), resume (Video.resume method)
Flash CS3