| Package | org.osmf.containers |
| Interface | public interface IMediaContainer |
| Implementors | HTMLMediaContainer, MediaContainer |
| Language Version: | ActionScript 3.0 |
| Product Version: | OSMF 1.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Public Methods
| Method | Defined By | ||
|---|---|---|---|
Adds a MediaElement instance to the container. | IMediaContainer | ||
Verifies if an element is a child of the container. | IMediaContainer | ||
Removes a MediaElement instance from the container. | IMediaContainer | ||
Method Detail
addMediaElement | () | method |
public function addMediaElement(element:MediaElement):MediaElement| Language Version: | ActionScript 3.0 |
| Product Version: | OSMF 1.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Adds a MediaElement instance to the container. It is mandatory for implementations to dispatch a ContainerChangeEvent via the element that is being added to the container.
Parameters
element:MediaElement — The MediaElement instance to add to the container.
|
MediaElement |
Throws
IllegalOperationError — if the specified element is null,
or already a child of the container.
|
containsMediaElement | () | method |
public function containsMediaElement(element:MediaElement):Boolean| Language Version: | ActionScript 3.0 |
| Product Version: | OSMF 1.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Verifies if an element is a child of the container.
Parameters
element:MediaElement — Element to verify.
|
Boolean — True if the element if a child of the container.
|
removeMediaElement | () | method |
public function removeMediaElement(element:MediaElement):MediaElement| Language Version: | ActionScript 3.0 |
| Product Version: | OSMF 1.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Removes a MediaElement instance from the container. It is mandatory for implementations to dispatch a ContainerChangeEvent via the element that is being removed from the container.
Parameters
element:MediaElement — The element to remove from the container.
|
MediaElement |
Throws
IllegalOperationError — if the specified element isn't
a child element, or is null.
|
Mon Nov 28 2011, 06:48 AM -08:00