developer documentation r21358

fm.flash

fm.flash.getVersion()

This function returns the installed version of Flash. The returned value is an array with the major version, minor version and revision.

Example

document.write('You have flashplayer: ' + fm.flash.getVersion().join('.'));

The function will return [0,0,0] if no flash player was installed, or if we could not detect the version information.

fm.flash.Object(options)

Use this class to create a flash embed code. All it's options can be specified through the options parameter, or later on by editing it's properties.

Example

var mySwf = new fm.flash.Object({ src : 'myswf.swf', width : '500', height : '500', flashVars : { myProperty : 'myvalue', myOtherProperty : 'foobar' } }); mySwf.write();

The following options are supported:

Additionally, the following functions are available:

.embed(element)

This function will replace the innerHTML of the supplied element with the embed code. If element is a string, we'll assume it's the element id and call document.getElementById().

.generateHTML()

This will generate the embed code, and return it as a string.

.write()

This will generate the html and call document.write.

<< 9.2 fm.cookies 9.4 fm.util >>