MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 604

Components language reference
Table of Contents

Advertisement

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. In the statement that loads the
property, replace the italicized text
contentPath
with the name and location of an FLV file on your FCS.
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.playing = function(eventObject:Object) {
trace("The isLive property is " + my_FLVPlybk.isLive);
};
my_FLVPlybk.addEventListener("playing", listenerObject);
my_FLVPlybk.contentPath = "rtmp://my_servername/my_application/stream.flv";
See also
,
FLVPlayback.contentPath
FLVPlayback.load()
FLVPlayback.isRTMP
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.isRTMP
Description
Property; a Boolean value that is
if the FLV file is streaming from a FCS or FVSS using
true
RTMP. Its value is
for any other FLV file source. Read-only.
false
Example
The following example assumes playing a streaming FLV file from a FCS or FVSS. When the
event occurs, the example shows the value of the
property to indicate
playing
isRTMP
whether the FLV file is coming from an RTMP URL.
602
FLVPlayback Component (Flash Professional Only)

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?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents