804
Chapter 7: ActionScript for Flash
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
my_video
) when the user clicks the
pause_btn
instance.
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
my_video
video object, and lets the user change the
deblocking filter behavior on video1.flv. Add a video object called
my_video
and a ComboBox
instance called
deblocking_cb
to your file, and then add the following ActionScript to your FLA
or AS file.
var deblocking_cb:mx.controls.ComboBox;
Summary of Contents for FLEX
Page 1: ...Flex ActionScript Language Reference ...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0 ...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally ...
Page 135: ...case 135 See also break default strict equality switch ...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while ...
Page 808: ...808 Chapter 7 ActionScript for Flash ...
Page 810: ...810 Appendix A Deprecated Flash 4 operators ...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code ...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values ...
Page 822: ...822 Index ...