Referencia de ActionScript® 3.0 para la plataforma de Adobe® Flash®
Inicio  |  Ocultar lista de paquetes y clases |  Paquetes  |  Clases  |  Novedades  |  Índice  |  Apéndices  |  ¿Por qué hay texto en inglés?
Filtros: Recuperando datos del servidor...
Recuperando datos del servidor...
org.osmf.display 

ScaleMode  - AS3 FLEXOSMF

Paqueteorg.osmf.display
Clasepublic final class ScaleMode
HerenciaScaleMode Inheritance Object

Versión del lenguaje: ActionScript 3.0
Versión de producto: OSMF para Flex 4.0
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

Note: This class provides backwards compatibility with Flex 4, and is for use with Flex 4 only. If you are using the OSMF 1.0 framework, use org.osmf.layout.ScaleMode instead.

The ScaleMode class controls the layout of out a single piece of content within a container. There are four enumeration values, NONE, STRETCH, LETTERBOX, and ZOOM.

Elementos de API relacionados



Propiedades públicas
 PropiedadDefinido por
 Inheritedconstructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada.
Object
Métodos públicos
 MétodoDefinido por
 Inherited
Indica si un objeto tiene definida una propiedad especificada.
Object
 Inherited
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro.
Object
 Inherited
Indica si existe la propiedad especificada y si es enumerable.
Object
 Inherited
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle.
Object
 Inherited
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional.
Object
 Inherited
Devuelve la representación de cadena del objeto especificado.
Object
 Inherited
Devuelve el valor simple del objeto especificado.
Object
Constantes públicas
 ConstanteDefinido por
  LETTERBOX : String = "letterbox"
[estática] 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"
[estática] NONE implies that the media size is set to match its intrinsic size.
ScaleMode
  STRETCH : String = "stretch"
[estática] 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"
[estática] 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
Información sobre constantes

LETTERBOX

Constante
public static const LETTERBOX:String = "letterbox"

Versión del lenguaje: ActionScript 3.0
Versión de producto: OSMF para Flex 4.0
Versiones de motor de ejecución: 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

Constante 
public static const NONE:String = "none"

Versión del lenguaje: ActionScript 3.0
Versión de producto: OSMF para Flex 4.0
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

NONE implies that the media size is set to match its intrinsic size.

STRETCH

Constante 
public static const STRETCH:String = "stretch"

Versión del lenguaje: ActionScript 3.0
Versión de producto: OSMF para Flex 4.0
Versiones de motor de ejecución: 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

Constante 
public static const ZOOM:String = "zoom"

Versión del lenguaje: ActionScript 3.0
Versión de producto: OSMF para Flex 4.0
Versiones de motor de ejecución: 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.





[ X ]¿Por qué hay texto en inglés?
Cierto contenido de la Referencia de ActionScript 3.0 se muestra en inglés

No todo el contenido de la Referencia de ActionScript 3.0 se traduce a todos los idiomas. Si un elemento del lenguaje no se traduce, aparecerá en inglés. Por ejemplo, la clase ga.controls.HelpBox no está traducida en ningún idioma. Por lo tanto, en la versión en español de la referencia, la clase ga.controls.HelpBox aparecerá en inglés.