document.setPlayerVersion()

Availability

Flash CS3 Professional.

Usage

document.setPlayerVersion(version)

Parameters

version A string that represents the version of Flash Player targeted by the specified document. Acceptable values are "FlashLite", "FlashLite11", "FlashLite20" , "1", "2", "3", "4", "5", "6", "7", "8", and "9". These values correspond to the Version drop-down list in the Publish Settings dialog box.

Returns

A value of true if the player version was successfully set; false otherwise.

Description

Method; sets the version of the Flash Player targeted by the specified document. This is the same value as that set in the Publish Settings dialog box.

Example

The following example targets Flash Lite 1.1 as the player version for the current document:

fl.getDocumentDOM().setPlayerVersion("FlashLite11");

See also

document.getPlayerVersion()