Paquete | org.osmf.elements |
Clase | public class CompositeElement |
Herencia | CompositeElement MediaElement EventDispatcher Object |
Subclases | ParallelElement, SerialElement |
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 |
The media elements that make up a media composition are treated as a single, unified media element. For example, if a media composition encapsulates a sequence of videos, the CompositeElement will behave as if it's a single VideoElement, but one which plays several videos in sequence.
Because a CompositeElement maintains a list of MediaElement children, any of which may be CompositeElements themselves, a media composition can be expressed as a tree structure.
Typically a CompositeElement is not instantiated directly but instead is used as the base class for creating specific types of media compositions.
Propiedad | Definido por | ||
---|---|---|---|
constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | ||
container : IMediaContainer [solo lectura]
The media container that this element uses. | MediaElement | ||
metadataNamespaceURLs : Vector.<String> [solo lectura]
A Vector containing the namespace URLs for all Metadata
objects stored within this MediaElement. | MediaElement | ||
numChildren : int [solo lectura]
The number of child MediaElements in this media composition. | CompositeElement | ||
resource : MediaResourceBase
The media resource that this media element operates on. | MediaElement | ||
traitTypes : Vector.<String> [solo lectura]
A Vector of MediaTraitType values representing the trait types on this
media element. | MediaElement |
Método | Definido por | ||
---|---|---|---|
Constructor. | CompositeElement | ||
Adds the specified child to the end of the list. | CompositeElement | ||
Adds the child to the list at the specified index. | CompositeElement | ||
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 | ||
Adds a Metadata object to this MediaElement under the specified namespace URL. | MediaElement | ||
Distribuye un evento en el flujo del evento. | EventDispatcher | ||
Gets the child at the specified index. | CompositeElement | ||
Returns the index of the child if it is in the list such that
getChildAt(index) == child. | CompositeElement | ||
Returns the Metadata object that is stored under this MediaElement with
the specified namespace URL. | MediaElement | ||
Returns the media trait of the specified type. | MediaElement | ||
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 | ||
Determines whether this media element has a media trait of the
specified type. | MediaElement | ||
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 | ||
Removes the specified child and returns it. | CompositeElement | ||
Removes the child at the specified index and returns it. | CompositeElement | ||
Elimina un detector del objeto EventDispatcher. | EventDispatcher | ||
Removes the Metadata object that was stored under this MediaElement with
the specified namespace URL. | MediaElement | ||
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 |
numChildren | propiedad |
CompositeElement | () | Información sobre |
public function CompositeElement()
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.
addChild | () | método |
public function addChild(child:MediaElement):MediaElement
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 |
Adds the specified child to the end of the list. Equivalent to
addChildAt(child,numChildren)
.
Parámetros
child:MediaElement — The child to add.
|
MediaElement — The MediaElement that you pass in the child parameter.
|
Emite
ArgumentError — If child is null .
| |
RangeError — If the specified index is less than zero or
greater than the length of the list.
| |
Error — If the child is already a child.
|
addChildAt | () | método |
public function addChildAt(child:MediaElement, index:Number):MediaElement
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 |
Adds the child to the list at the specified index. If a child already exists at this index, it and all subsequent children will have their index positions increased by one.
Parámetros
child:MediaElement — The child to add.
| |
index:Number — The index position at which to add the child.
|
MediaElement — The MediaElement that you pass in the child parameter.
|
Emite
ArgumentError — If child is null .
| |
RangeError — If the specified index is less than zero or
greater than the length of the list.
| |
Error — If the child is already a child.
|
getChildAt | () | método |
public function getChildAt(index:int):MediaElement
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 |
Gets the child at the specified index.
Parámetros
index:int — The index in the list from which to retrieve the child.
|
MediaElement — The child at that index or null if there is none.
|
getChildIndex | () | método |
public function getChildIndex(child:MediaElement):int
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 |
Returns the index of the child if it is in the list such that
getChildAt(index) == child
.
Parámetros
child:MediaElement — The child to find.
|
int — The index of the child or -1 if the child is not in the
list.
|
removeChild | () | método |
public function removeChild(child:MediaElement):MediaElement
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 |
Removes the specified child and returns it. Equivalent to
removeChildAt(child,getChildIndex(child))
.
Parámetros
child:MediaElement — The child MediaElement to remove.
|
MediaElement — The MediaElement that you pass in the child parameter.
|
Emite
ArgumentError — If the child is not a child of this composition.
|
removeChildAt | () | método |
public function removeChildAt(index:int):MediaElement
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 |
Removes the child at the specified index and returns it. Any children with index positions greater than this index have their index positions decreased by one.
Parámetros
index:int — The index from which to remove the child.
|
MediaElement — The child at that index.
|
Emite
RangeError — If the specified index is less than zero or
greater than the length of the list.
|
Tue Jun 12 2018, 02:12 PM Z