Paket | org.osmf.traits |
Klass | public class AudioTrait |
Arv | AudioTrait MediaTraitBase EventDispatcher Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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.
Relaterade API-element
Egenskap | Definieras med | ||
---|---|---|---|
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | 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 [skrivskyddad]
The MediaTraitType for this trait. | MediaTraitBase | ||
volume : Number
The volume, ranging from 0 (silent) to 1 (full volume). | AudioTrait |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | AudioTrait | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Disposes of any resources used by this trait. | MediaTraitBase | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
Metod | Definieras med | ||
---|---|---|---|
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 |
Händelse | Sammanfattning | Definieras med | ||
---|---|---|---|---|
[utsändningshändelse] Skickas när Flash Player eller AIR får operativsystemfokus och blir aktivt. | EventDispatcher | |||
[utsändningshändelse] Skickas när Flash Player eller AIR förlorar operativsystemfokus och blir inaktivt. | 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 | egenskap |
muted:Boolean
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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
.
Implementering
public function get muted():Boolean
public function set muted(value:Boolean):void
Relaterade API-element
pan | egenskap |
pan:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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.
Implementering
public function get pan():Number
public function set pan(value:Number):void
volume | egenskap |
volume:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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.
Implementering
public function get volume():Number
public function set volume(value:Number):void
Relaterade API-element
AudioTrait | () | Konstruktor |
public function AudioTrait()
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Constructor.
mutedChangeEnd | () | metod |
protected function mutedChangeEnd():void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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 | () | metod |
protected function mutedChangeStart(newMuted:Boolean):void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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.
Parametrar
newMuted:Boolean — New muted value.
|
panChangeEnd | () | metod |
protected function panChangeEnd():void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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 | () | metod |
protected function panChangeStart(newPan:Number):void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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.
Parametrar
newPan:Number — New pan value.
|
volumeChangeEnd | () | metod |
protected function volumeChangeEnd():void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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 | () | metod |
protected function volumeChangeStart(newVolume:Number):void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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.
Parametrar
newVolume:Number — New volume value.
|
mutedChange | Händelse |
org.osmf.events.AudioEvent
egenskap AudioEvent.type =
org.osmf.events.AudioEvent.MUTED_CHANGE
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's muted
property has changed.
panChange | Händelse |
org.osmf.events.AudioEvent
egenskap AudioEvent.type =
org.osmf.events.AudioEvent.PAN_CHANGE
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's pan
property has changed.
volumeChange | Händelse |
org.osmf.events.AudioEvent
egenskap AudioEvent.type =
org.osmf.events.AudioEvent.VOLUME_CHANGE
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's volume
property has changed.
Tue Jun 12 2018, 01:40 PM Z