Adobe® Flash® Platform için ActionScript® 3.0 Başvurusu
Ana Sayfa  |  Paket ve Sınıf Listesini Gizle |  Paketler  |  Sınıflar  |  Yenilikler  |  Dizin  |  Ekler  |  Niçin İngilizce?
Filtreler: Sunucudan Veri Alınıyor...
Sunucudan Veri Alınıyor...
org.osmf.traits 

TimeTrait  - AS3 OSMF

Paketorg.osmf.traits
Sınıfpublic class TimeTrait
Miras AlmaTimeTrait Inheritance MediaTraitBase Inheritance EventDispatcher Inheritance 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

TimeTrait defines the trait interface for media that have a duration and a currentTime. It can also be used as the base class for a more specific TimeTrait subclass.

Use the MediaElement.hasTrait(MediaTraitType.TIME) method to query whether a media element has a trait of this type. If hasTrait(MediaTraitType.TIME) returns true, use the MediaElement.getTrait(MediaTraitType.TIME) method to get an object that is of this type.

İlgili API Öğeleri



Genel Özellikler
 ÖzellikTanımlayan:
 Inheritedconstructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru.
Object
  currentTime : Number
[salt okunur] The current time of the media, in seconds.
TimeTrait
  duration : Number
[salt okunur] The duration of the media, in seconds.
TimeTrait
 InheritedtraitType : String
[salt okunur] The MediaTraitType for this trait.
MediaTraitBase
Genel Yöntemler
 YöntemTanımlayan:
  
TimeTrait(duration:Number = NaN)
Constructor.
TimeTrait
 Inherited
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
 Inherited
Olay akışına bir olay gönderir.
EventDispatcher
 Inherited
Disposes of any resources used by this trait.
MediaTraitBase
 Inherited
EventDispatcher nesnesinin belirli bir olay türü için kayıtlı dinleyicisi olup olmadığını kontrol eder.
EventDispatcher
 Inherited
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir.
Object
 Inherited
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir.
Object
 Inherited
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
EventDispatcher nesnesinden bir dinleyiciyi kaldırır.
EventDispatcher
 Inherited
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar.
Object
 Inherited
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür.
Object
 Inherited
Belirtilen nesnenin dize olarak temsil edilen halini döndürür.
Object
 Inherited
Belirtilen nesnenin temel değerini döndürür.
Object
 Inherited
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
Korunan Yöntemler
 YöntemTanımlayan:
  
Called just after the currentTime property has changed.
TimeTrait
  
Called immediately before the currentTime property is changed.
TimeTrait
  
Called just after the duration property has changed.
TimeTrait
  
Called immediately before the duration property is changed.
TimeTrait
  
Invoking this setter will result in the trait's currentTime value changing if it differs from currentTime's current value.
TimeTrait
  
Invoking this setter will result in the trait's duration value changing if it differs from duration's current value.
TimeTrait
Olaylar
 Olay Özet Tanımlayan:
 Inherited[broadcast olayı] Flash Player veya AIR uygulaması işletim sistemi odağına gelip etkin olduğunda gönderilir.EventDispatcher
  Dispatched when the currentTime of the trait has changed to a value equal to its duration.TimeTrait
 Inherited[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 duration of the trait changed.TimeTrait
Özellik Ayrıntısı

currentTime

özellik
currentTime:Number  [salt okunur]

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 current time of the media, in seconds. Must never exceed the duration.



Uygulama
    public function get currentTime():Number

duration

özellik 
duration:Number  [salt okunur]

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 duration of the media, in seconds.



Uygulama
    public function get duration():Number
Yapıcı Ayrıntı

TimeTrait

()Yapıcı
public function TimeTrait(duration:Number = NaN)

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.

Parametreler
duration:Number (default = NaN) — The duration of the media, in seconds. The default is NaN (no duration).
Yöntem Ayrıntısı

currentTimeChangeEnd

()yöntem
protected function currentTimeChangeEnd(oldCurrentTime: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 just after the currentTime property has changed.

Parametreler

oldCurrentTime:Number — Previous currentTime value.

currentTimeChangeStart

()yöntem 
protected function currentTimeChangeStart(newCurrentTime: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 currentTime property is changed.

Subclasses can override this method to communicate the change to the media.

Parametreler

newCurrentTime:Number — New currentTime value.

durationChangeEnd

()yöntem 
protected function durationChangeEnd(oldDuration: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 just after the duration property has changed. Dispatches the change event.

Subclasses that override should call this method to dispatch the durationChange event.

Parametreler

oldDuration:Number — Previous duration value.

durationChangeStart

()yöntem 
protected function durationChangeStart(newDuration: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 duration property is changed.

Subclasses can override this method to communicate the change to the media.

Parametreler

newDuration:Number — New duration value.

setCurrentTime

()yöntem 
protected final function setCurrentTime(value: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

Invoking this setter will result in the trait's currentTime value changing if it differs from currentTime's current value.

Parametreler

value:Number

setDuration

()yöntem 
protected final function setDuration(value: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

Invoking this setter will result in the trait's duration value changing if it differs from duration's current value.

Parametreler

value:Number

Olay Ayrıntısı

complete

Olay
Olay Nesne Türü: org.osmf.events.TimeEvent
özellik TimeEvent.type = org.osmf.events.TimeEvent.COMPLETE

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 currentTime of the trait has changed to a value equal to its duration.

The TimeEvent.COMPLETE constant defines the value of the type property of the event object for a complete event.

durationChange

Olay  
Olay Nesne Türü: org.osmf.events.TimeEvent
özellik TimeEvent.type = org.osmf.events.TimeEvent.DURATION_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 duration of the trait changed.

The TimeEvent.DURATION_CHANGE constant defines the value of the type property of the event object for a durationChange event.




[ X ]Niçin İngilizce?
ActionScript 3.0 Başvurusu'ndaki içerik İngilizce görünür

ActionScript 3.0 Başvurusu'nun tüm bölümleri tüm dillere çevrilmemiştir. Bir dil öğesi çevrilmediğinde İngilizce görünür. Örneğin, ga.controls.HelpBox sınıfı hiçbir dile çevrilmez. Bu nedenle, başvurunun Türkçe versiyonunda ga.controls.HelpBox sınıfı İngilizce görünür.