MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 804

Actionscript language reference
Table of Contents

Advertisement

Description
Method; clears the image currently displayed in the Video object. This is useful when, for
example, you want to display standby information without having to hide the Video object.
Example
The following example pauses and clears video1.flv that is playing in a Video object (called
) when the user clicks the
my_video
var pause_btn:Button;
var my_video:Video; // my_video is a Video object on the Stage
var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.play("video1.flv");
pause_btn.onRelease = function() {
my_ns.pause();
my_video.clear();
};
See also
Video.attachVideo()
Video.deblocking
Availability
Flash Player 6.
Usage
my_video.deblocking:Number
Description
Property; a number that specifies the behavior for the deblocking filter that the video compressor
applies as needed when streaming the video. The following are acceptable values:
0 (the default): Let the video compressor apply the deblocking filter as needed.
1: Never use the deblocking filter.
2: Always use the deblocking filter.
The deblocking filter has an effect on overall playback performance, and it is usually not necessary
for high-bandwidth video. If your system is not powerful enough, you might experience
difficulties playing back video with this filter enabled.
Example
The following example plays video1.flv in the
deblocking filter behavior on video1.flv. Add a video object called
instance called
deblocking_cb
or AS file.
var deblocking_cb:mx.controls.ComboBox;
804
Chapter 7: ActionScript for Flash
instance.
pause_btn
my_video
to your file, and then add the following ActionScript to your FLA
video object, and lets the user change the
and a ComboBox
my_video

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents