| 包 | org.osmf.containers |
| 类 | public class HTMLMediaContainer |
| 继承 | HTMLMediaContainer Object |
| 实现 | IMediaContainer |
| 语言版本: | ActionScript 3.0 |
| 产品版本: | OSMF 1.0 |
| 运行时版本: | Flash Player 10, AIR 1.5 |
公共方法
| 方法 | 由以下参数定义 | ||
|---|---|---|---|
HTMLMediaContainer(containerIdentifier:String = null)
构造函数。 | HTMLMediaContainer | ||
![]() |
表示对象是否已经定义了指定的属性。 | Object | |
![]() |
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | |
![]() |
表示指定的属性是否存在、是否可枚举。 | Object | |
![]() |
设置循环操作动态属性的可用性。 | Object | |
![]() |
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | |
![]() |
返回指定对象的字符串表示形式。 | Object | |
![]() |
返回指定对象的原始值。 | Object | |
构造函数详细信息
HTMLMediaContainer | () | 构造函数 |
示例 如何使用本示例
HTMLMediaContainerExample.as
package
{
import flash.display.Sprite;
import org.osmf.elements.HTMLElement;
import org.osmf.media.URLResource;
public class HTMLMediaContainerExample extends Sprite
{
public function HTMLMediaContainerExample()
{
super();
// This will invoke a JavaScript callback (onHTMLMediaContainerConstructed(container))
// that may be used to add listeners to new elements being added or removed to the
// container.
var container:HTMLMediaContainer = new HTMLMediaContainer();
var element:HTMLElement = new HTMLElement();
element.resource = new URLResource("http://example.com/an/asset/JS/will/handle.pgn");
// This will invoke a JavaScript callback (container.onElementAdd(element)) that
// allows JavaScript to process the passed URL, and to communicate back to the
// framework what traits the element will support:
container.addMediaElement(element);
}
}
}
Tue Jun 12 2018, 11:04 AM Z
隐藏继承的公共属性
显示继承的公共属性