| Pacote | org.osmf.traits |
| Classe | public class AudioTrait |
| Herança | AudioTrait MediaTraitBase EventDispatcher Object |
| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | 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 da API relacionados
| Propriedade | Definido por | ||
|---|---|---|---|
![]() | constructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | 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 [somente leitura]
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 um objeto de ouvinte de evento em um objeto EventDispatcher, de forma que o ouvinte receba a notificação de um evento. | EventDispatcher | |
![]() |
Envia um evento para o fluxo de eventos. | EventDispatcher | |
![]() |
Disposes of any resources used by this trait. | MediaTraitBase | |
![]() |
Verifica se o objeto EventDispatcher tem ouvintes registrados para um tipo específico de evento. | EventDispatcher | |
![]() |
Indica se um objeto tem uma propriedade especificada definida. | Object | |
![]() |
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | |
![]() |
Indica se a propriedade especificada existe e é enumerável. | Object | |
![]() |
Remove um ouvinte do objeto EventDispatcher. | EventDispatcher | |
![]() |
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | |
![]() |
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | |
![]() |
Retorna a representação de string do objeto especificado. | Object | |
![]() |
Retorna o valor primitivo do objeto especificado. | Object | |
![]() |
Verifica se um ouvinte de evento está registrado nesse objeto EventDispatcher ou em qualquer um de seus ancestrais para o tipo de evento especificado. | 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 | Resumo | Definido por | ||
|---|---|---|---|---|
![]() | [transmissão de evento] Despachado quando o Flash Player ou o aplicativo do AIR ganha o foco do sistema operacional e está se tornando inativo. | EventDispatcher | ||
![]() | [transmissão de evento] Despachado quando o Flash Player ou o aplicativo do AIR perde o foco do sistema operacional e está se tornando inativo. | 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 | propriedade |
muted:Boolean| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | 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.
Implementação
public function get muted():Boolean public function set muted(value:Boolean):voidElementos da API relacionados
pan | propriedade |
pan:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | 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.
Implementação
public function get pan():Number public function set pan(value:Number):voidvolume | propriedade |
volume:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | 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.
Implementação
public function get volume():Number public function set volume(value:Number):voidElementos da API relacionados
AudioTrait | () | Construtor |
public function AudioTrait()| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | Flash Player 10, AIR 1.5 |
Constructor.
mutedChangeEnd | () | método |
protected function mutedChangeEnd():void| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | 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| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | 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| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | 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| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | 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| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | 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| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | 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.AudioEventpropriedade AudioEvent.type =
org.osmf.events.AudioEvent.MUTED_CHANGE| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's muted property has changed.
panChange | Evento |
org.osmf.events.AudioEventpropriedade AudioEvent.type =
org.osmf.events.AudioEvent.PAN_CHANGE| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's pan property has changed.
volumeChange | Evento |
org.osmf.events.AudioEventpropriedade AudioEvent.type =
org.osmf.events.AudioEvent.VOLUME_CHANGE| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | OSMF 1.0 |
| Versões de runtime: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's volume property has changed.
Wed Jun 13 2018, 11:10 AM Z
Ocultar propriedades públicas herdadas
Mostrar propriedades públicas herdadas