| Pakiet | org.osmf.traits |
| Klasa | public class AudioTrait |
| Dziedziczenie | AudioTrait MediaTraitBase EventDispatcher Object |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
Powiązane elementy interfejsu API
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | 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 [tylko do odczytu]
The MediaTraitType for this trait. | MediaTraitBase | |
| volume : Number
The volume, ranging from 0 (silent) to 1 (full volume). | AudioTrait | ||
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Constructor. | AudioTrait | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | EventDispatcher | |
![]() |
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | EventDispatcher | |
![]() |
Disposes of any resources used by this trait. | MediaTraitBase | |
![]() |
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | EventDispatcher | |
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Usuwa detektor z obiektu EventDispatcher. | EventDispatcher | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
![]() |
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | EventDispatcher | |
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
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 | ||
| Zdarzenie | Podsumowanie | Zdefiniowane przez | ||
|---|---|---|---|---|
![]() | [zdarzenie broadcast] Wywoływane, gdy program Flash Player lub aplikacja środowiska wykonawczego AIR uzyskuje fokus w systemie operacyjnym i przechodzi w stan aktywny. | EventDispatcher | ||
![]() | [zdarzenie broadcast] Wywoływane, gdy program Flash Player lub aplikacja AIR traci fokus w systemie operacyjnym i przechodzi w stan nieaktywny. | 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 | właściwość |
muted:Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
Implementacja
public function get muted():Boolean public function set muted(value:Boolean):voidPowiązane elementy interfejsu API
pan | właściwość |
pan:Number| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
Implementacja
public function get pan():Number public function set pan(value:Number):voidvolume | właściwość |
volume:Number| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
Implementacja
public function get volume():Number public function set volume(value:Number):voidPowiązane elementy interfejsu API
AudioTrait | () | Konstruktor |
public function AudioTrait()| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Constructor.
mutedChangeEnd | () | metoda |
protected function mutedChangeEnd():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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 | () | metoda |
protected function mutedChangeStart(newMuted:Boolean):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
Parametry
newMuted:Boolean — New muted value.
|
panChangeEnd | () | metoda |
protected function panChangeEnd():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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 | () | metoda |
protected function panChangeStart(newPan:Number):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
Parametry
newPan:Number — New pan value.
|
volumeChangeEnd | () | metoda |
protected function volumeChangeEnd():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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 | () | metoda |
protected function volumeChangeStart(newVolume:Number):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
Parametry
newVolume:Number — New volume value.
|
mutedChange | Zdarzenie |
org.osmf.events.AudioEventwłaściwość AudioEvent.type =
org.osmf.events.AudioEvent.MUTED_CHANGE| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's muted property has changed.
panChange | Zdarzenie |
org.osmf.events.AudioEventwłaściwość AudioEvent.type =
org.osmf.events.AudioEvent.PAN_CHANGE| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's pan property has changed.
volumeChange | Zdarzenie |
org.osmf.events.AudioEventwłaściwość AudioEvent.type =
org.osmf.events.AudioEvent.VOLUME_CHANGE| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's volume property has changed.
Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne