套件 | org.osmf.layout |
類別 | public final class ScaleMode |
繼承 | ScaleMode ![]() |
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
方法 | 定義自 | ||
---|---|---|---|
![]() |
指出物件是否有已定義的指定屬性。 | Object | |
![]() |
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | |
![]() |
指出指定的屬性是否存在,以及是否可列舉。 | Object | |
![]() |
為迴圈作業設定動態屬性的可用性。 | Object | |
![]() |
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | |
![]() |
會傳回指定之物件的字串形式。 | Object | |
![]() |
會傳回指定之物件的基本值。 | Object |
常數 | 定義自 | ||
---|---|---|---|
LETTERBOX : String = "letterbox" [靜態]
LETTERBOX sets the width and height of the content as close to the container width and height
as possible while maintaining aspect ratio. | ScaleMode | ||
NONE : String = "none" [靜態]
NONE implies that the media size is set to match its intrinsic size. | ScaleMode | ||
STRETCH : String = "stretch" [靜態]
STRETCH sets the width and the height of the content to the
container width and height, possibly changing the content aspect ratio. | ScaleMode | ||
ZOOM : String = "zoom" [靜態]
ZOOM is similar to LETTERBOX, except that ZOOM stretches the
content past the bounds of the container, to remove the spacing required to maintain aspect ratio. | ScaleMode |
LETTERBOX | 常數 |
public static const LETTERBOX:String = "letterbox"
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
LETTERBOX
sets the width and height of the content as close to the container width and height
as possible while maintaining aspect ratio. The content is stretched to a maximum of the container bounds,
with spacing added inside the container to maintain the aspect ratio if necessary.
NONE | 常數 |
public static const NONE:String = "none"
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
NONE
implies that the media size is set to match its intrinsic size.
STRETCH | 常數 |
public static const STRETCH:String = "stretch"
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
STRETCH
sets the width and the height of the content to the
container width and height, possibly changing the content aspect ratio.
ZOOM | 常數 |
public static const ZOOM:String = "zoom"
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
ZOOM
is similar to LETTERBOX
, except that ZOOM
stretches the
content past the bounds of the container, to remove the spacing required to maintain aspect ratio.
This has the effect of using the entire bounds of the container, but also possibly cropping some content.
Tue Jun 12 2018, 03:47 PM Z