用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: 正在从服务器检索数据...
正在从服务器检索数据...
fl.video 

VideoScaleMode  - AS3 Flash

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

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.0

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

相关 API 元素



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

EXACT_FIT

常量
public static const EXACT_FIT:String = "exactFit"

语言版本: ActionScript 3.0
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.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
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.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
产品版本: Flash CS3
运行时版本: Flash Player 9.0.28.0, AIR 1.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





[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。