MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 680

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:
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.stateChange = function(eventObject:Object):Void {
trace(my_FLVPlybk.state + "; responsive: " +
my_FLVPlybk.stateResponsive);
};
my_FLVPlybk.addEventListener("stateChange", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
See also
FLVPlayback.state
FLVPlayback.stop()
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.stop()
Parameters
None.
Returns
Nothing.
Description
Method; stops the video from playing. If the
rewinds to the beginning.
678
FLVPlayback Component (Flash Professional Only)
,
FLVPlayback.stateChange
property is
autoRewind
, the FLV file
true

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents