| Paket | org.osmf.traits |
| Sınıf | public class AudioTrait |
| Miras Alma | AudioTrait MediaTraitBase EventDispatcher Object |
| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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.
İlgili API Öğeleri
| Özellik | Tanımlayan: | ||
|---|---|---|---|
![]() | constructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | 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 [salt okunur]
The MediaTraitType for this trait. | MediaTraitBase | |
| volume : Number
The volume, ranging from 0 (silent) to 1 (full volume). | AudioTrait | ||
| Yöntem | Tanımlayan: | ||
|---|---|---|---|
Constructor. | AudioTrait | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
EventDispatcher nesnesi olan bir olay dinleyici nesnesini, dinleyicinin bir olayın bildirimini alması için kaydeder. | EventDispatcher | |
![]() |
Olay akışına bir olay gönderir. | EventDispatcher | |
![]() |
Disposes of any resources used by this trait. | MediaTraitBase | |
![]() |
EventDispatcher nesnesinin belirli bir olay türü için kayıtlı dinleyicisi olup olmadığını kontrol eder. | EventDispatcher | |
![]() |
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | |
![]() |
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | |
![]() |
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | |
![]() |
EventDispatcher nesnesinden bir dinleyiciyi kaldırır. | EventDispatcher | |
![]() |
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | |
![]() |
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | |
![]() |
Belirtilen nesnenin dize olarak temsil edilen halini döndürür. | Object | |
![]() |
Belirtilen nesnenin temel değerini döndürür. | Object | |
![]() |
Bir olay dinleyicisinin bu EventDispatcher nesnesiyle mi, yoksa onun belirtilen olay türüne yönelik üst öğelerinden biriyle mi kayıtlı olduğunu kontrol eder. | EventDispatcher | |
| Yöntem | Tanımlayan: | ||
|---|---|---|---|
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 | ||
| Olay | Özet | Tanımlayan: | ||
|---|---|---|---|---|
![]() | [broadcast olayı] Flash Player veya AIR uygulaması işletim sistemi odağına gelip etkin olduğunda gönderilir. | EventDispatcher | ||
![]() | [broadcast olayı] Çalışan Flash Player veya AIR uygulaması sistem odağını kaybettiğinde ve etkin olmayan duruma geldiğinde gönderilir. | 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 | özellik |
muted:Boolean| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get muted():Boolean public function set muted(value:Boolean):voidİlgili API Öğeleri
pan | özellik |
pan:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get pan():Number public function set pan(value:Number):voidvolume | özellik |
volume:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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.
Uygulama
public function get volume():Number public function set volume(value:Number):voidİlgili API Öğeleri
AudioTrait | () | Yapıcı |
public function AudioTrait()| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Constructor.
mutedChangeEnd | () | yöntem |
protected function mutedChangeEnd():void| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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 | () | yöntem |
protected function mutedChangeStart(newMuted:Boolean):void| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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.
Parametreler
newMuted:Boolean — New muted value.
|
panChangeEnd | () | yöntem |
protected function panChangeEnd():void| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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 | () | yöntem |
protected function panChangeStart(newPan:Number):void| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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.
Parametreler
newPan:Number — New pan value.
|
volumeChangeEnd | () | yöntem |
protected function volumeChangeEnd():void| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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 | () | yöntem |
protected function volumeChangeStart(newVolume:Number):void| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | 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.
Parametreler
newVolume:Number — New volume value.
|
mutedChange | Olay |
org.osmf.events.AudioEventözellik AudioEvent.type =
org.osmf.events.AudioEvent.MUTED_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's muted property has changed.
panChange | Olay |
org.osmf.events.AudioEventözellik AudioEvent.type =
org.osmf.events.AudioEvent.PAN_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's pan property has changed.
volumeChange | Olay |
org.osmf.events.AudioEventözellik AudioEvent.type =
org.osmf.events.AudioEvent.VOLUME_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's volume property has changed.
Tue Jun 12 2018, 01:09 PM Z
Miras Alınan Genel Özellikleri Gizle
Miras Alınan Genel Özellikleri Göster