|
可用性
Flash Player 6
Flash Media Server(不是必需的)
用法
public smoothing : Boolean
[table][tr][td]描述
属性;一个布尔值,指定在缩放该视频时是否应进行平滑处理(内插数据)。播放器必须处于高品质模式,平滑处理才起作用。默认值为false(不进行平滑处理)。
例子
下面的范例使用一个按钮来触发当my_video在一个SWF文件中播放时应用于其上的smoothing属性。创建一个名为
smoothing_btn的按钮并把下面的ActionScript添加到你的FLA或AS文件:
this.createTextField("smoothing_txt", this.getNextHighestDepth(), 0, 0, 100, 22);
smoothing_txt.autoSize = true;
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");
my_ns.onStatus = function(infoObject:Object) {
updateSmoothing();
};
smoothing_btn.onRelease = function() {
my_video.smoothing = !my_video.smoothing;
updateSmoothing();
function updateSmoothing():Void {
smoothing_txt.text = "smoothing = "+my_video.smoothing;
} |
|