03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Use of a deblocking filter has an effect on overall playback performance, <strong>and</strong> it is usually not<br />

necessary for high-b<strong>and</strong>width video. If your system is not powerful enough, you may<br />

experience difficulties playing back video with this filter enabled.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 6<br />

Example<br />

The following example plays video1.flv in the my_video video object, <strong>and</strong> lets the user change<br />

the deblocking filter behavior on video1.flv. Add a video object called my_video <strong>and</strong> a<br />

ComboBox instance called deblocking_cb to your file, <strong>and</strong> then add the following<br />

<strong>ActionScript</strong> to your FLA or AS file.<br />

var deblocking_cb:mx.controls.ComboBox;<br />

var my_video:Video; // my_video is a Video object on the Stage<br />

var my_nc:NetConnection = new NetConnection();<br />

my_nc.connect(null);<br />

var my_ns:NetStream = new NetStream(my_nc);<br />

my_video.attachVideo(my_ns);<br />

my_ns.play("video1.flv");<br />

deblocking_cb.addItem({data:0, label:'Auto'});<br />

deblocking_cb.addItem({data:1, label:'No'});<br />

deblocking_cb.addItem({data:2, label:'Yes'});<br />

var cbListener:Object = new Object();<br />

cbListener.change = function(evt:Object) {<br />

my_video.deblocking = evt.target.selectedItem.data;<br />

};<br />

deblocking_cb.addEventListener("change", cbListener);<br />

Use the ComboBox instance to change the deblocking filter behavior on video1.flv.<br />

_height (Video._height property)<br />

public _height : Number<br />

Indicates the height of the Video object, in pixels.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 8<br />

See also<br />

_width (Video._width property)<br />

height (Video.height property)<br />

public height : Number [read-only]<br />

1300 <strong>ActionScript</strong> classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!