English | Site Directory

gadgets.flash

 SUMMARY     DETAIL

Static Class gadgets.flash

Embeds Flash content in gadgets.

Method Summary

<static>  Boolean embedCachedFlash()
Injects a cached Flash file into the DOM tree.
<static>  Boolean embedFlash(swfUrl, swfContainer, swfVersion, opt_params)
Injects a Flash file into the DOM tree.
<static>  Number getMajorVersion()
Detects Flash Player and its major version.
 

Method Detail

embedCachedFlash

<static> Boolean embedCachedFlash()
    Injects a cached Flash file into the DOM tree. Accepts the same parameters as gadgets.flash.embedFlash does.
    Returns:
      Boolean Whether the function call completes successfully.

embedFlash

<static> Boolean embedFlash(swfUrl, swfContainer, swfVersion, opt_params)
    Injects a Flash file into the DOM tree.
    Parameters:
      String swfUrl - SWF URL.
      String, Object swfContainer - The id or object reference of an existing html container element.
      Number swfVersion - Minimal Flash Player version required.
      Object opt_params - An optional object that may contain any valid html parameter. All attributes will be passed through to the flash movie on creation.
    Returns:
      Boolean Whether the function call completes successfully.

getMajorVersion

<static> Number getMajorVersion()
    Detects Flash Player and its major version.
    Returns:
      Number The major version of Flash Player or 0 if Flash is not supported.

Documentation generated by JsDoc Toolkit 1.3.3