套件 | org.osmf.containers |
介面 | public interface IMediaContainer |
實作者 | HTMLMediaContainer, MediaContainer |
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
公用方法
方法 | 定義自 | ||
---|---|---|---|
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 |
方法詳細資訊
addMediaElement | () | 方法 |
public function addMediaElement(element:MediaElement):MediaElement
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | 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.
參數
element:MediaElement — The MediaElement instance to add to the container.
|
MediaElement |
擲回值
IllegalOperationError — if the specified element is null,
or already a child of the container.
|
containsMediaElement | () | 方法 |
public function containsMediaElement(element:MediaElement):Boolean
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Verifies if an element is a child of the container.
參數
element:MediaElement — Element to verify.
|
Boolean — True if the element if a child of the container.
|
removeMediaElement | () | 方法 |
public function removeMediaElement(element:MediaElement):MediaElement
語言版本: | ActionScript 3.0 |
產品版本: | OSMF 1.0 |
執行階段版本: | 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.
參數
element:MediaElement — The element to remove from the container.
|
MediaElement |
擲回值
IllegalOperationError — if the specified element isn't
a child element, or is null.
|
Tue Jun 12 2018, 03:47 PM Z