Skip to main content

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​
NameTypeDescription
swfUrlStringSWF URL
swfContainerStringRefer to the HTML container element ID or object.
swfVersionNumebrMinimum Flash Player version
opt_paramsObjectObject that may contain valid HTML parameters. All are directly passed on during creation of a Flash movie.
Return value​
TypeDescription
BooleanWhether 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​
NameTypeDescription
swfUrlStringSWF URL
swfContainerStringRefer to the HTML container element ID or object.
swfVersionNumebrMinimum Flash Player version
opt_paramsObjectObject that may contain valid HTML parameters. All are directly passed on during creation of a Flash movie.
Return value​
TypeDescription
BooleanWhether 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​
TypeDescription
NumberThe Flash player and its major version.
Sample​
var ver = gadgets.flash.getMajorVersion();

Revision History​

  • 12/2010
    • Initial Release.