MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 623

Components language reference
Table of Contents

Advertisement

A number that is the total playing time for the video. Optional.
totalTime
A Boolean value that is
isLive
when streaming from a FCS or FVSS. The value of this property is ignored for an HTTP
download. Optional.
Returns
Nothing.
Description
Method; plays the video stream. With no parameters, the method simply takes the FLV file
from a paused or stopped state to the playing state.
If parameters are used, the method acts as a shortcut for setting the
and setting the
true
isLive
properties are undefined, they are not set.
isLive
Example
The following example disables the FLV file from playing automatically, calls the
method to set the playhead 20 seconds into the video, and calls the
seekSeconds()
method to begin playing the FLV file at that point.
Drag an FLVPlayback component to the Stage, and give it an instance name of
my_FLVPlybk. Then add the following code to the Actions panel on Frame 1 of the
Timeline:
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
my_FLVPlybk.autoPlay = false;
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
my_FLVPlybk.seekSeconds(4);
my_FLVPlybk.play();
};
my_FLVPlybk.addEventListener("ready", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
See also
FLVPlayback.autoPlay
FLVPlayback.pause()
if the video stream is live. This value is effective only
true
,
and,
totalTime
,
FLVPlayback.contentPath
,
FLVPlayback.stop()
properties. If the
contentPath
,
FLVPlayback.load()
property to
autoPlay
totalTime
play()
,
FLVPlayback class
and
621

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents