beautypg.com

Fl.swfpanels, Fl.synchronizedocumentwithheadversion() – Adobe Extending Flash Professional CS4 User Manual

Page 278

background image

256

EXTENDING FLASH CS4 PROFESSIONAL

flash object (fl)

fl.swfPanels

Availability
Flash CS4 Professional.

Usage

fl.swfPanels

Description
Read-only property; an array of registered swfPanel objects (see

swfPanel object

). A swfPanel object is registered if it

has been opened at least once.

A panel’s position in the array represents the order in which it was opened. If the first panel opened is named
TraceBitmap and the second panel opened is named AnotherFunction, then

fl.swfPanels[0]

is the TraceBitmap

swfPanel object,

fl.swfPanels[1]

is the AnotherFunction swfPanel object, and so on.

Example
The following code displays the name and path of any registered Window SWF panels in the Output panel:

if(fl.swfPanels.length > 0){

for(x = 0; x < fl.swfPanels.length; x++){
fl.trace("Panel: " + fl.swfPanels[x].name + " -- Path: " + fl.swfPanels[x].path);
}

}

fl.synchronizeDocumentWithHeadVersion()

Availability
Flash CS3 Professional.

Usage

fl.synchronizeDocumentWithHeadVersion(documentObject)

Parameters

documentObject

A

Document object

.

Returns
A Boolean value of

true

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

false

otherwise.

Description
Method; synchronizes the specified document with the most current version on the Version Cue server and logs any
errors to the Output panel. This method is identical to

document.synchronizeWithHeadVersion()

.

Example
The following example synchronizes the current document with the Version Cue server:

fl.synchronizeWithHeadVersion(fl.getDocumentDOM());