gadgets.flash
Method
gadgets.flash.embedCachedFlash
<static> Boolean embedCachedFlash(swfUrl, swfContainer, swfVersion, opt_params)
Embeds Flash contents in a DOM tree. It is not currently cached, so it performs the same function as gadgets.flash.embedFlash.
Parameter
| Name | Type | Description |
|---|---|---|
| swfUrl | String | SWF URL |
| swfContainer | String | Refer to the HTML container element ID or object. |
| swfVersion | Numebr | Minimum Flash Player version |
| opt_params | Object | Object that may contain valid HTML parameters. All are directly passed on during creation of a Flash movie. |
Return value
| Type | Description |
|---|---|
| Boolean | Whether or not it was completed normally. |
Sample
var res = gadgets.flash.embedCachedFlash(
"http://example.com/flash.swf",
document.getElementById("flash"),
6,
{
width: 300,
height: 200
}
);
gadgets.flash.embedFlash
<static> Boolean embedFlash(swfUrl, swfContainer, swfVersion, opt_params)
Embeds Flash contents in a DOM tree.
Parameter
| Name | Type | Description |
|---|---|---|
| swfUrl | String | SWF URL |
| swfContainer | String | Refer to the HTML container element ID or object. |
| swfVersion | Numebr | Minimum Flash Player version |
| opt_params | Object | Object that may contain valid HTML parameters. All are directly passed on during creation of a Flash movie. |
Return value
| Type | Description |
|---|---|
| Boolean | Whether or not it was completed normally. |
Sample
var res = gadgets.flash.embedFlash(
"http://example.com/flash.swf",
document.getElementById("flash"),
6,
{
width: 300,
height: 200
}
);
gadgets.flash.getMajorVersion
<static> Number getMajorVersion()
Parameter
None
Return value
| Type | Description |
|---|---|
| Number | The Flash player and its major version. |
Sample
var ver = gadgets.flash.getMajorVersion();
Revision History
- 12/2010
- Initial Release.