MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 580

Components language reference
Table of Contents

Advertisement

FLVPlayback.playheadTime
FLVPlayback.stopped
FLVPlayback.CONNECTION_ERROR
mx.video.FLVPlayback.CONNECTION_ERROR
"connectionError"
connection error state has occurred.
The following example forces a connection error by specifying an invalid FLV filename
(
) in the
nosuch.flv
property to detect the error in a listener for the
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
/**
*/
no_such.flv";
listenerObject.stateChange = function(eventObject:Object):Void {
if(my_FLVPlybk.state == FLVPlayback.CONNECTION_ERROR)
trace("State: " + FLVPlayback.CONNECTION_ERROR);
}
my_FLVPlybk.addEventListener("stateChange", listenerObject);
FLVPlayback.state
578
FLVPlayback Component (Flash Professional Only)
,
FLVPlayback.state
,
FLVPlayback.totalTime
. You can compare this property to the
property. The example uses the
contentPath
,
FLVPlayback.stateChange
,
FLVPlayback.stateChange
property to determine if a
state
CONNECTION_ERROR
event.
stateChange
,

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents