| Package | org.osmf.containers |
| Class | public class HTMLMediaContainer |
| Inheritance | HTMLMediaContainer Object |
| Implements | IMediaContainer |
| Language Version: | ActionScript 3.0 |
| Product Version: | OSMF 1.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Public Properties
Public Methods
| Method | Defined By | ||
|---|---|---|---|
HTMLMediaContainer(containerIdentifier:String = null)
Constructor. | HTMLMediaContainer | ||
![]() |
Indicates whether an object has a specified property defined. | Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | |
![]() |
Indicates whether the specified property exists and is enumerable. | Object | |
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
![]() |
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | |
![]() |
Returns the string representation of the specified object. | Object | |
![]() |
Returns the primitive value of the specified object. | Object | |
Constructor Detail
HTMLMediaContainer | () | Constructor |
public function HTMLMediaContainer(containerIdentifier:String = null)| Language Version: | ActionScript 3.0 |
| Product Version: | OSMF 1.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
Constructor.
ParameterscontainerIdentifier:String (default = null) — The identifier that will be used for this container
in JavaScript. If no identifier is specified, a random one will be generated.
|
Examples How to use this example
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);
}
}
}
Mon Nov 28 2011, 06:48 AM -08:00
Hide Inherited Public Properties
Show Inherited Public Properties