Adobe Extending Flash Professional CS5 Manual de usuario Pagina 260

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 565
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 259
238
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
Description
Method; retrieves the DOM (Document object) 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()
Vista de pagina 259
1 2 ... 255 256 257 258 259 260 261 262 263 264 265 ... 564 565

Comentarios a estos manuales

Sin comentarios