Document.setplayerversion(), Document.setrectangleobjectproperty() – Adobe Extending Flash Professional CS4 User Manual
Page 173

151
EXTENDING FLASH CS4 PROFESSIONAL
Document object
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"
,
"FlashLite30"
,
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"7"
,
"8"
,
"9"
,
"
FlashPlayer10
", and "
AdobeAIR1_1
".
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 Player 6 as the player version for the current document:
fl.getDocumentDOM().setPlayerVersion("6");
See also
document.setRectangleObjectProperty()
Availability
Flash CS3 Professional.
Usage
document.setRectangleObjectProperty(propertyName, value)
Parameters
propertyName
A string that specifies the property to be set. For acceptable values, see the Property summary table for
.
value
The value to be assigned to the property. Acceptable values vary depending on the property you specify in
propertyName.
Returns
Nothing.