Package | org.osmf.layout |
Class | public final class ScaleMode |
Inheritance | ScaleMode ![]() |
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 1.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Property | Defined By | ||
---|---|---|---|
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance. | Object |
Method | Defined By | ||
---|---|---|---|
![]() |
Indicates whether an object has a specified property defined. | Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | |
![]() |
Indicates whether the specified property exists and is enumerable. | Object | |
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
![]() |
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | |
![]() |
Returns the string representation of the specified object. | Object | |
![]() |
Returns the primitive value of the specified object. | Object |
Constant | Defined By | ||
---|---|---|---|
LETTERBOX : String = "letterbox" [static]
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" [static]
NONE implies that the media size is set to match its intrinsic size. | ScaleMode | ||
STRETCH : String = "stretch" [static]
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" [static]
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 | Constant |
public static const LETTERBOX:String = "letterbox"
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 1.0 |
Runtime Versions: | 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 | Constant |
public static const NONE:String = "none"
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 1.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
NONE
implies that the media size is set to match its intrinsic size.
STRETCH | Constant |
public static const STRETCH:String = "stretch"
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 1.0 |
Runtime Versions: | 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 | Constant |
public static const ZOOM:String = "zoom"
Language Version: | ActionScript 3.0 |
Product Version: | OSMF 1.0 |
Runtime Versions: | 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.
Thu Dec 4 2014, 05:50 PM -08:00