| Pakiet | org.osmf.traits |
| Klasa | public class SeekTrait |
| Dziedziczenie | SeekTrait 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.SEEK) method to query
whether a media element has a trait of this type.
If hasTrait(MediaTraitType.SEEK) returns true,
use the MediaElement.getTrait(MediaTraitType.SEEK) method
to get an object that is guaranteed to be 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 | |
| seeking : Boolean [tylko do odczytu]
Indicates whether the media is currently seeking. | SeekTrait | ||
![]() | traitType : String [tylko do odczytu]
The MediaTraitType for this trait. | MediaTraitBase | |
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| timeTrait : org.osmf.traits:TimeTrait
The TimeTrait used by this SeekTrait. | SeekTrait | ||
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
SeekTrait(timeTrait:org.osmf.traits:TimeTrait)
Constructor. | SeekTrait | ||
![]() | 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 | |
Indicates whether the media is capable of seeking to the
specified time. | SeekTrait | ||
![]() |
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 | |
Instructs the media to jump to the specified time. | SeekTrait | ||
![]() |
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 seeking property has changed. | SeekTrait | ||
Called immediately before the seeking property is changed. | SeekTrait | ||
Must be called by the implementing media on completing a seek. | SeekTrait | ||
| 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 this trait begins or ends a seek operation. | SeekTrait | |||
seeking | właściwość |
timeTrait | właściwość |
timeTrait:org.osmf.traits:TimeTrait| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
The TimeTrait used by this SeekTrait.
Implementacja
protected function get timeTrait():org.osmf.traits:TimeTrait protected function set timeTrait(value:org.osmf.traits:TimeTrait):voidSeekTrait | () | Konstruktor |
public function SeekTrait(timeTrait:org.osmf.traits:TimeTrait)Constructor.
ParametrytimeTrait:org.osmf.traits:TimeTrait |
canSeekTo | () | metoda |
public function canSeekTo(time:Number):Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Indicates whether the media is capable of seeking to the specified time.
Parametry
time:Number — Time to seek to in seconds.
|
Boolean — Returns true if the media can seek to the specified time.
|
seek | () | metoda |
public final function seek(time:Number):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Instructs the media to jump to the specified time.
If a seek is attempted, dispatches a seekingChange event.
If time is non numerical or negative, does not attempt to seek.
Parametry
time:Number — Time to seek to in seconds.
|
seekingChangeEnd | () | metoda |
protected function seekingChangeEnd(time:Number):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 seeking property has changed.
Dispatches the change event.
Subclasses that override should call this method to dispatch the change event.
Parametry
time:Number — New time value representing the time that the playhead seeked to.
|
seekingChangeStart | () | metoda |
protected function seekingChangeStart(newSeeking:Boolean, time: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 seeking property is changed.
Subclasses can override this method to communicate the change to the media.
Parametry
newSeeking:Boolean — New time value representing the time that the playhead seeks to.
| |
time:Number |
setSeeking | () | metoda |
protected final function setSeeking(value:Boolean, time:Number):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Must be called by the implementing media on completing a seek.
Calls the seekingChangeStart() and seekingChangeEnd()
methods.
Parametry
value:Boolean — New seeking value.
| |
time:Number — Position in seconds that the playhead was ultimately
moved to.
|
seekingChange | Zdarzenie |
org.osmf.events.SeekEventwłaściwość SeekEvent.type =
org.osmf.events.SeekEvent.SEEKING_CHANGE| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Dispatched when this trait begins or ends a seek operation.
The SeekEvent.SEEKING_CHANGE constant defines the value of the type property of the event object for a seekingChange event.Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne