beautypg.com

Document.swapstrokeandfill(), Document.synchronizewithheadversion() – Adobe Extending Flash Professional CS4 User Manual

Page 186

background image

164

EXTENDING FLASH CS4 PROFESSIONAL

Document object

Description
Method; swaps the current selection with the specified one. The selection must contain a graphic, button, movie clip,
video, or bitmap. This method displays an error message if no object is selected or the given object could not be found.

Example
The following example swaps the current selection with

Symbol 1

from the library:

fl.getDocumentDOM().swapElement('Symbol 1');

document.swapStrokeAndFill()

Availability
Flash 8.

Usage

document.swapStrokeAndFill()

Parameters
None.

Returns
Nothing.

Description
Method; swaps the Stroke and Fill colors.

Example
The following example swaps the Stroke and Fill colors in the current document:

fl.getDocumentDOM().swapStrokeAndFill();

document.synchronizeWithHeadVersion()

Availability
Flash CS3 Professional.

Usage

fldocument.getDocumentDOMsynchronizeWithHeadVersion().swapStrokeAndFill();

Parameters
None.

Returns
A Boolean value of

true

if the specified file was successfully synchronized with the Version Cue server,

false

otherwise.