Pacchetto | org.osmf.elements |
Classe | public class CompositeElement |
Ereditarietà | CompositeElement MediaElement EventDispatcher Object |
Sottoclassi | ParallelElement, SerialElement |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | 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.
Proprietà | Definito da | ||
---|---|---|---|
constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | ||
container : IMediaContainer [sola lettura]
The media container that this element uses. | MediaElement | ||
metadataNamespaceURLs : Vector.<String> [sola lettura]
A Vector containing the namespace URLs for all Metadata
objects stored within this MediaElement. | MediaElement | ||
numChildren : int [sola lettura]
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> [sola lettura]
A Vector of MediaTraitType values representing the trait types on this
media element. | MediaElement |
Metodo | Definito da | ||
---|---|---|---|
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 oggetto listener di eventi con un oggetto EventDispatcher, in modo che il listener riceva la notifica di un evento. | EventDispatcher | ||
Adds a Metadata object to this MediaElement under the specified namespace URL. | MediaElement | ||
Invia un evento nel flusso di eventi. | 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 | ||
Verifica se per l'oggetto EventDispatcher sono presenti listener registrati per un tipo specifico di evento. | EventDispatcher | ||
Indica se per un oggetto è definita una proprietà specifica. | Object | ||
Determines whether this media element has a media trait of the
specified type. | MediaElement | ||
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | ||
Indica se la proprietà specificata esiste ed è enumerabile. | Object | ||
Removes the specified child and returns it. | CompositeElement | ||
Removes the child at the specified index and returns it. | CompositeElement | ||
Rimuove un listener dall'oggetto EventDispatcher. | EventDispatcher | ||
Removes the Metadata object that was stored under this MediaElement with
the specified namespace URL. | MediaElement | ||
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | ||
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | ||
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | ||
Restituisce il valore di base dell'oggetto specificato. | Object | ||
Verifica se un listener di eventi è registrato con questo oggetto EventDispatcher o qualsiasi suo antenato per il tipo di evento specificato. | EventDispatcher |
numChildren | proprietà |
CompositeElement | () | Funzione di costruzione |
public function CompositeElement()
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Constructor.
addChild | () | metodo |
public function addChild(child:MediaElement):MediaElement
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Adds the specified child to the end of the list. Equivalent to
addChildAt(child,numChildren)
.
Parametri
child:MediaElement — The child to add.
|
MediaElement — The MediaElement that you pass in the child parameter.
|
Genera
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 | () | metodo |
public function addChildAt(child:MediaElement, index:Number):MediaElement
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | 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.
Parametri
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.
|
Genera
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 | () | metodo |
public function getChildAt(index:int):MediaElement
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Gets the child at the specified index.
Parametri
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 | () | metodo |
public function getChildIndex(child:MediaElement):int
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Returns the index of the child if it is in the list such that
getChildAt(index) == child
.
Parametri
child:MediaElement — The child to find.
|
int — The index of the child or -1 if the child is not in the
list.
|
removeChild | () | metodo |
public function removeChild(child:MediaElement):MediaElement
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Removes the specified child and returns it. Equivalent to
removeChildAt(child,getChildIndex(child))
.
Parametri
child:MediaElement — The child MediaElement to remove.
|
MediaElement — The MediaElement that you pass in the child parameter.
|
Genera
ArgumentError — If the child is not a child of this composition.
|
removeChildAt | () | metodo |
public function removeChildAt(index:int):MediaElement
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | 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.
Parametri
index:int — The index from which to remove the child.
|
MediaElement — The child at that index.
|
Genera
RangeError — If the specified index is less than zero or
greater than the length of the list.
|
Tue Jun 12 2018, 02:44 PM Z