| Pakket | org.osmf.traits |
| Klasse | public class AudioTrait |
| Overerving | AudioTrait MediaTraitBase EventDispatcher Object |
| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | 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.
Verwante API-elementen
| Eigenschap | Gedefinieerd door | ||
|---|---|---|---|
![]() | constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | 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 [alleen-lezen]
The MediaTraitType for this trait. | MediaTraitBase | |
| volume : Number
The volume, ranging from 0 (silent) to 1 (full volume). | AudioTrait | ||
| Methode | Gedefinieerd door | ||
|---|---|---|---|
Constructor. | AudioTrait | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registreert een gebeurtenislistenerobject bij een object EventDispatcher, zodat de listener een melding van een gebeurtenis ontvangt. | EventDispatcher | |
![]() |
Verzendt een gebeurtenis naar de gebeurtenisstroom. | EventDispatcher | |
![]() |
Disposes of any resources used by this trait. | MediaTraitBase | |
![]() |
Controleert of het object EventDispatcher listeners heeft geregistreerd voor een specifiek type gebeurtenis. | EventDispatcher | |
![]() |
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | |
![]() |
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | |
![]() |
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | |
![]() |
Verwijdert een listener uit het object EventDispatcher. | EventDispatcher | |
![]() |
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | |
![]() |
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | |
![]() |
Retourneert een tekenreeksrepresentatie van het opgegeven object. | Object | |
![]() |
Retourneert de primitieve waarde van het opgegeven object. | Object | |
![]() |
Controleert of een gebeurtenislistener is geregistreerd bij dit object EventDispatcher of een van de voorouders voor het opgegeven type gebeurtenis. | EventDispatcher | |
| Methode | Gedefinieerd door | ||
|---|---|---|---|
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 | ||
| Gebeurtenis | Overzicht | Gedefinieerd door | ||
|---|---|---|---|---|
![]() | [uitgezonden gebeurtenis] Wordt verzonden wanneer Flash Player of de AIR-toepassing de besturingssysteemfocus krijgt en actief wordt. | EventDispatcher | ||
![]() | [uitgezonden gebeurtenis] Wordt verzonden wanneer Flash Player of de AIR-toepassing de systeemfocus verliest en inactief wordt. | 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 | eigenschap |
muted:Boolean| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | 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.
Implementatie
public function get muted():Boolean public function set muted(value:Boolean):voidVerwante API-elementen
pan | eigenschap |
pan:Number| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | 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.
Implementatie
public function get pan():Number public function set pan(value:Number):voidvolume | eigenschap |
volume:Number| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | 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.
Implementatie
public function get volume():Number public function set volume(value:Number):voidVerwante API-elementen
AudioTrait | () | Constructor |
public function AudioTrait()| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | Flash Player 10, AIR 1.5 |
Constructor.
mutedChangeEnd | () | methode |
protected function mutedChangeEnd():void| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | 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 | () | methode |
protected function mutedChangeStart(newMuted:Boolean):void| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | 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.
Parameters
newMuted:Boolean — New muted value.
|
panChangeEnd | () | methode |
protected function panChangeEnd():void| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | 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 | () | methode |
protected function panChangeStart(newPan:Number):void| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | 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.
Parameters
newPan:Number — New pan value.
|
volumeChangeEnd | () | methode |
protected function volumeChangeEnd():void| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | 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 | () | methode |
protected function volumeChangeStart(newVolume:Number):void| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | 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.
Parameters
newVolume:Number — New volume value.
|
mutedChange | Gebeurtenis |
org.osmf.events.AudioEventeigenschap AudioEvent.type =
org.osmf.events.AudioEvent.MUTED_CHANGE| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's muted property has changed.
panChange | Gebeurtenis |
org.osmf.events.AudioEventeigenschap AudioEvent.type =
org.osmf.events.AudioEvent.PAN_CHANGE| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's pan property has changed.
volumeChange | Gebeurtenis |
org.osmf.events.AudioEventeigenschap AudioEvent.type =
org.osmf.events.AudioEvent.VOLUME_CHANGE| Taalversie: | ActionScript 3.0 |
| Productversie: | OSMF 1.0 |
| Runtimeversies: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's volume property has changed.
Wed Jun 13 2018, 11:42 AM Z
Overerfde openbare eigenschappen verbergen
Overerfde openbare eigenschappen weergeven