Video
1279
deblocking_cb.addItem({data:1, label:'No'});
deblocking_cb.addItem({data:2, label:'Yes'});
var cbListener:Object = new Object();
cbListener.change = function(evt:Object) {
my_video.deblocking = evt.target.selectedItem.data;
};
deblocking_cb.addEventListener("change", cbListener);
Use the ComboBox instance to change the deblocking filter behavior on video1.flv.
_height (Video._height property)
public _height : Number
Indicates the height of the Video object, in pixels.
Availability:
ActionScript 1.0; Flash Player 8
See also
_width (Video._width property)
height (Video.height property)
public height : Number [read-only]
An integer specifying the height of the video stream, in pixels. For live streams, this value is
the same as the
Camera.height
property of the Camera object that is capturing the video
stream. For FLV files, this value is the height of the file that was exported as FLV.
You may want to use this property, for example, to ensure that the user is seeing the video at
the same size at which it was captured, regardless of the actual size of the Video object on the
Stage.
Availability:
ActionScript 1.0; Flash Player 6
Example
The following example sets the
_height
and
_width
properties of the Video Symbol instance
equal to the
height
and
width
of the loaded FLV file.
To use this example, first create a new Video symbol with an instance name of "myVideo" and
place it in the same context as this script. The
height
and
width
properties will be zero when
the
NetStream.Play.Start
status code is triggered. By resizing the video when the status of
NetStream.Buffer.Full
is received you make sure that its size is correct before the first
frame of video is shown.
var netConn:NetConnection = new NetConnection();
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...