Video.smoothing
747
Video.height
Availability
Flash Player 6.
Usage
my_video
.height
Description
Read-only property; 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.
Example
Usage 1: The following example sets the height and width values of the Video object to match the
values of an FLV file. You should call this code after
NetStream.onStatus
is invoked with a
code
property of
NetStream.Buffer.Full
. If you call it when the
code
property is
NetStream.Play.Start
, the height and width values will be 0, because the Video object doesn’t
yet have the height and width of the loaded FLV file.
// Clip is the instance name of the movie clip
// that contains the video object "my_video".
_root.Clip._width = _root.Clip.my_video.width;
_root.Clip._height = _root.Clip.my_video.height;
Usage 2: The following example lets the user press a button to set the height and width of a video
stream being displayed in the Flash Player to be the same as the height and width at which the
video stream was captured.
on (release) {
_root.my_video._width = _root.my_video.width
_root.my_video._height = _root.my_video.height
}
See also
MovieClip._height
,
Video.width
Video.smoothing
Availability
Flash Player 6.
Usage
my_video
.smoothing
Description
Property; a Boolean value that specifies whether the video should be smoothed (interpolated)
when it is scaled. For smoothing to work, the player must be in high-quality mode. The default
value is
false
(no smoothing).
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...