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.scaleX = 150;
my_FLVPlybk.scaleY = 150;
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
See also
,
FLVPlayback.scaleX
FLVPlayback.setScale()
FLVPlayback.scrubbing
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.scrubbing
Description
Property; a Boolean value that is
if the user is scrubbing with the SeekBar and
true
false
otherwise. Read-only.
Scrubbing refers to grabbing the handle of the seek bar and dragging it in either direction to
locate a particular scene in the FLV file.
Example
The following example shows the value of the
property when a
event occurs.
scrubbing
seek
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:
You must grab the handle of the SeekBar, drag it, and release it to cause the event.
FLVPlayback class
647
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers