| Paquete | org.osmf.traits |
| Clase | public class AudioTrait |
| Herencia | AudioTrait MediaTraitBase EventDispatcher Object |
| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Use the MediaElement.hasTrait(MediaTraitType.AUDIO_TRAIT) method to query
whether a media element has this trait.
If hasTrait(MediaTraitType.AUDIO_TRAIT) returns true,
use the MediaElement.getTrait(MediaTraitType.AUDIO_TRAIT) method
to get an object of this type.
Elementos de API relacionados
| Propiedad | Definido por | ||
|---|---|---|---|
![]() | constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | |
| muted : Boolean
Indicates whether the AudioTrait is muted or sounding. | AudioTrait | ||
| pan : Number
The left-to-right panning of the sound. | AudioTrait | ||
![]() | traitType : String [solo lectura]
The MediaTraitType for this trait. | MediaTraitBase | |
| volume : Number
The volume, ranging from 0 (silent) to 1 (full volume). | AudioTrait | ||
| Método | Definido por | ||
|---|---|---|---|
Constructor. | AudioTrait | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | EventDispatcher | |
![]() |
Distribuye un evento en el flujo del evento. | EventDispatcher | |
![]() |
Disposes of any resources used by this trait. | MediaTraitBase | |
![]() |
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | EventDispatcher | |
![]() |
Indica si un objeto tiene definida una propiedad especificada. | Object | |
![]() |
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | |
![]() |
Indica si existe la propiedad especificada y si es enumerable. | Object | |
![]() |
Elimina un detector del objeto EventDispatcher. | EventDispatcher | |
![]() |
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | |
![]() |
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | |
![]() |
Devuelve la representación de cadena del objeto especificado. | Object | |
![]() |
Devuelve el valor simple del objeto especificado. | Object | |
![]() |
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | EventDispatcher | |
| Método | Definido por | ||
|---|---|---|---|
Called just after the muted property has been toggled. | AudioTrait | ||
Called immediately before the muted value is toggled. | AudioTrait | ||
Called just after the pan value has changed. | AudioTrait | ||
Called immediately before the pan value is changed. | AudioTrait | ||
Called just after the volume value has changed. | AudioTrait | ||
Called immediately before the volume value is changed. | AudioTrait | ||
| Evento | Resumen | Definido por | ||
|---|---|---|---|---|
![]() | [evento broadcast] Se distribuye cuando Flash Player o AIR pasan a estar activos. | EventDispatcher | ||
![]() | [evento broadcast] Se distribuye cuando Flash Player o de AIR pasan a estar inactivos. | EventDispatcher | ||
| Dispatched when the trait's muted property has changed. | AudioTrait | |||
| Dispatched when the trait's pan property has changed. | AudioTrait | |||
| Dispatched when the trait's volume property has changed. | AudioTrait | |||
muted | propiedad |
muted:Boolean| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Indicates whether the AudioTrait is muted or sounding.
Changing the value of the muted property does not affect the
value of the volume property.
The default value is false.
Implementación
public function get muted():Boolean public function set muted(value:Boolean):voidElementos de API relacionados
pan | propiedad |
pan:Number| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
The left-to-right panning of the sound. Ranges from -1 (full pan left) to 1 (full pan right).
Passing a value greater than 1 sets the value to 1. Passing a value less than -1 sets the value to -1.
The default is zero.
Implementación
public function get pan():Number public function set pan(value:Number):voidvolume | propiedad |
volume:Number| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
The volume, ranging from 0 (silent) to 1 (full volume).
Passing a value greater than 1 sets the value to 1. Passing a value less than zero sets the value to zero.
Changing the value of the volume property does not affect the value of the
muted property.
The default is 1.
Implementación
public function get volume():Number public function set volume(value:Number):voidElementos de API relacionados
AudioTrait | () | Información sobre |
public function AudioTrait()| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Constructor.
mutedChangeEnd | () | método |
protected function mutedChangeEnd():void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Called just after the muted property has been toggled.
Dispatches the change event.
Subclasses that override should call this method to dispatch the mutedChange event.
mutedChangeStart | () | método |
protected function mutedChangeStart(newMuted:Boolean):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Called immediately before the muted value is toggled.
Subclasses can override this method to communicate the change to the media.
Parámetros
newMuted:Boolean — New muted value.
|
panChangeEnd | () | método |
protected function panChangeEnd():void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Called just after the pan value has changed.
Dispatches the change event.
Subclasses that override should call this method to dispatch the panChange event.
panChangeStart | () | método |
protected function panChangeStart(newPan:Number):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Called immediately before the pan value is changed.
Subclasses can override this method to communicate the change to the media.
Parámetros
newPan:Number — New pan value.
|
volumeChangeEnd | () | método |
protected function volumeChangeEnd():void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Called just after the volume value has changed.
Dispatches the change event.
Subclasses that override should call this method to dispatch the volumeChange event.
volumeChangeStart | () | método |
protected function volumeChangeStart(newVolume:Number):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Called immediately before the volume value is changed.
Subclasses can override this method to communicate the change to the media.
Parámetros
newVolume:Number — New volume value.
|
mutedChange | Evento |
org.osmf.events.AudioEventpropiedad AudioEvent.type =
org.osmf.events.AudioEvent.MUTED_CHANGE| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's muted property has changed.
panChange | Evento |
org.osmf.events.AudioEventpropiedad AudioEvent.type =
org.osmf.events.AudioEvent.PAN_CHANGE| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's pan property has changed.
volumeChange | Evento |
org.osmf.events.AudioEventpropiedad AudioEvent.type =
org.osmf.events.AudioEvent.VOLUME_CHANGE| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's volume property has changed.
Tue Jun 12 2018, 02:12 PM Z
Ocultar propiedades públicas heredadas
Mostrar propiedades públicas heredadas