| Paquete | org.osmf.traits |
| Clase | public class TimeTrait |
| Herencia | TimeTrait MediaTraitBase EventDispatcher Object |
| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
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.
Elementos de API relacionados
| Propiedad | Definido por | ||
|---|---|---|---|
![]() | constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | |
| currentTime : Number [solo lectura]
The current time of the media, in seconds. | TimeTrait | ||
| duration : Number [solo lectura]
The duration of the media, in seconds. | TimeTrait | ||
![]() | traitType : String [solo lectura]
The MediaTraitType for this trait. | MediaTraitBase | |
| Método | Definido por | ||
|---|---|---|---|
Constructor. | TimeTrait | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | EventDispatcher | |
![]() |
Distribuye un evento en el flujo del evento. | EventDispatcher | |
![]() |
Disposes of any resources used by this trait. | MediaTraitBase | |
![]() |
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | EventDispatcher | |
![]() |
Indica si un objeto tiene definida una propiedad especificada. | Object | |
![]() |
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | |
![]() |
Indica si existe la propiedad especificada y si es enumerable. | Object | |
![]() |
Elimina un detector del objeto EventDispatcher. | EventDispatcher | |
![]() |
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | |
![]() |
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | |
![]() |
Devuelve la representación de cadena del objeto especificado. | Object | |
![]() |
Devuelve el valor simple del objeto especificado. | Object | |
![]() |
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | EventDispatcher | |
| Método | Definido por | ||
|---|---|---|---|
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 | ||
| Evento | Resumen | Definido por | ||
|---|---|---|---|---|
![]() | [evento broadcast] Se distribuye cuando Flash Player o AIR pasan a estar activos. | EventDispatcher | ||
| Dispatched when the currentTime of the trait has changed to a value equal to its duration. | TimeTrait | |||
![]() | [evento broadcast] Se distribuye cuando Flash Player o de AIR pasan a estar inactivos. | EventDispatcher | ||
| Dispatched when the duration of the trait changed. | TimeTrait | |||
currentTime | propiedad |
duration | propiedad |
TimeTrait | () | Información sobre |
public function TimeTrait(duration:Number = NaN)| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Constructor.
Parámetrosduration:Number (default = NaN) — The duration of the media, in seconds. The default
is NaN (no duration).
|
currentTimeChangeEnd | () | método |
protected function currentTimeChangeEnd(oldCurrentTime:Number):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Called just after the currentTime property has changed.
Parámetros
oldCurrentTime:Number — Previous currentTime value.
|
currentTimeChangeStart | () | método |
protected function currentTimeChangeStart(newCurrentTime:Number):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | 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.
Parámetros
newCurrentTime:Number — New currentTime value.
|
durationChangeEnd | () | método |
protected function durationChangeEnd(oldDuration:Number):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | 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.
Parámetros
oldDuration:Number — Previous duration value.
|
durationChangeStart | () | método |
protected function durationChangeStart(newDuration:Number):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | 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.
Parámetros
newDuration:Number — New duration value.
|
setCurrentTime | () | método |
protected final function setCurrentTime(value:Number):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | 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.
Parámetros
value:Number |
setDuration | () | método |
protected final function setDuration(value:Number):void| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | 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.
Parámetros
value:Number |
complete | Evento |
org.osmf.events.TimeEventpropiedad TimeEvent.type =
org.osmf.events.TimeEvent.COMPLETE| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | 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 | Evento |
org.osmf.events.TimeEventpropiedad TimeEvent.type =
org.osmf.events.TimeEvent.DURATION_CHANGE| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | OSMF 1.0 |
| Versiones de motor de ejecución: | 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.Tue Jun 12 2018, 02:12 PM Z
Ocultar propiedades públicas heredadas
Mostrar propiedades públicas heredadas