fl.video
public final class VideoScaleMode
继承VideoScaleMode Inheritance Object

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9.0.28.0

VideoScaleMode 类提供了用于 FLVPlayback.scaleModeVideoPlayer.scaleMode 属性的常数值。

另请参见

FLVPlayback.scaleMode
VideoPlayer.scaleMode



公共 属性
 属性定义方
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
 Inheritedprototype : Object
[static] 对类或函数对象的原型对象的引用。
Object
公共 方法
 方法定义方
 Inherited
指示对象是否已经定义了指定的属性。
Object
 Inherited
指示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
指示指定的属性是否存在、是否可枚举。
Object
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
公共 常量
 常量定义方
  EXACT_FIT : String = "exactFit"
[static] 指定以 registrationHeight 或 height 及 registrationWidth 或 width 属性所指定的高度和宽度显示视频。
VideoScaleMode
  MAINTAIN_ASPECT_RATIO : String = "maintainAspectRatio"
[static] 指定将视频限制在由 registrationX、registrationY、registrationWidth 和 registrationHeight 属性所确定的矩形中,但保持其原始高宽比。
VideoScaleMode
  NO_SCALE : String = "noScale"
[static] 指定完全以源视频的高度和宽度显示视频。
VideoScaleMode
常量详细信息
EXACT_FIT常量
public static const EXACT_FIT:String = "exactFit"

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9.0.28.0

指定以 registrationHeightheightregistrationWidthwidth 属性所指定的高度和宽度显示视频。

例如,若 registrationWidth = width = 100registrationHeight = height = 100registrationX = 200registrationY = 200,并且加载一个 FLV 文件,其 width 为 648,height 为 480(高宽比近似为 4:3),并且 align = VideoAlign.CENTERscaleMode = EXACT_FIT,将会得到 width = 100height = 100x = 200y = 200

MAINTAIN_ASPECT_RATIO常量 
public static const MAINTAIN_ASPECT_RATIO:String = "maintainAspectRatio"

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9.0.28.0

指定将视频限制在由 registrationXregistrationYregistrationWidthregistrationHeight 属性所确定的矩形中,但保持其原始高宽比。

例如,若 registrationWidth = 100registrationHeight = 100registrationX = 200registrationY = 200,并且加载一个 FLV 文件,其 width 为 648,height 为 480(高宽比近似为 4:3),并且 align = VideoAlign.CENTERscaleMode = MAINTAIN_ASPECT_RATIO,将会得到 width = 100height = (100 * 480 / 648) = 74x = 10y = (10 + ((100 - 74) / 2)) = 23

NO_SCALE常量 
public static const NO_SCALE:String = "noScale"

语言版本 : ActionScript 3.0
Player 版本 : Flash Player 9.0.28.0

指定完全以源视频的高度和宽度显示视频。

例如,若 registrationWidth = 100registrationHeight = 100registrationX = 200registrationY = 200,并且加载一个 FLV 文件,其 width 为 648,height 为 480(高宽比近似为 4:3),并且 align = VideoAlign.CENTERscaleMode = NO_SCALE,将会得到 width = 648height = 480x = (200 + ((100 - 648) / 2)) = -74y = (200 + ((100 - 480) / 2)) = 10





 

评论添加到页面后给我发送电子邮件 | 评论报告

当前页: http://livedocs.adobe.com/flash/9.0_cn/ActionScriptLangRefV3/fl/video/VideoScaleMode.html