Fl.getswfpanel(), Fl.installedplayers – Adobe Extending Flash Professional CS5 User Manual
Page 260

238
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
Description
Method; retrieves the DOM (
) of the currently active document (FLA file). If one or more documents
are open but a document does not currently have focus (for example, if a JSFL file has focus), retrieves the DOM of the
most recently active document.
Example
The following example displays the name of the current or most recently active document in the Output panel:
var currentDoc = fl.getDocumentDOM();
fl.trace(currentDoc.name);
fl.getSwfPanel()
Availability
Flash CS5.5 Professional.
Usage
fl.getSwfPanel(panelName, [useLocalizedPanelName])
Parameters
panelName
The localized panel name or the root filename of the panel's SWF file. Pass in false as the second parameter
if using the latter.
useLocalizedPanelName
Optional. Defaults to true. If false, the panelName parameter is assumed to be the English
(unlocalized) name of the panel, which corresponds to the SWF filename without the file extension.
Returns
SWFPanel object.
Description
Method; returns the SWFPanel object based on the panel's localized name or its SWF filename (without the filename
extension).
Example
The following example displays the name of the panel referenced as ‘Project’ in the Output panel:
fl.trace('name of panel is: ' + fl.getSwfPanel('Project').name);
fl.installedPlayers
Availability
Flash CS5.5 Professional.
Usage
fl.installedPlayers()