Adobe Extending Flash Professional CS5 Manuale Utente Pagina 258

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 257
236
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
var doc = fl.getDocumentDOM();
var typeToSearchFor = "text";
var resultsArray = fl.findObjectInDocByType(typeToSearchFor, doc);
if (resultsArray.length > 0) {
for (var i = 0; i < resultsArray.length; i++) {
resultsArray[i].obj.setTextString("new text");
var firstItem = resultsArray[0];
firstItemObj = firstItem.obj;
fl.trace(firstItemObj.layer.name+"layerName");
}
} else {
alert("failed, no objects of type " + typeToSearchFor + " found");
}
See also
fl.findObjectInDocByName()
fl.flexSDKPath
Availability
Flash CS4 Professional.
Usage
fl.flexSDKPath
Description
Property; a string that specifies the path to the Flex SDK folder, which contains bin, frameworks, lib, and other folders.
In the authoring tool, the items are specified by choosing Edit
> Preferences > ActionScript > ActionScript 3.0
Settings.
Example
The following code displays the Flex SDK path in the Output panel:
fl.trace(fl.flexSDKPath);
See also
fl.externalLibraryPath,fl.libraryPath, fl.sourcePath
fl.getAppMemoryInfo()
Availability
Flash 8 (Windows only).
Usage
fl.getAppMemoryInfo(memType)
Vedere la pagina 257
1 2 ... 253 254 255 256 257 258 259 260 261 262 263 ... 564 565

Commenti su questo manuale

Nessun commento