beautypg.com

Fl.flexsdkpath, Fl.getappmemoryinfo() – Adobe Extending Flash Professional CS5 User Manual

Page 258

background image

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)

This manual is related to the following products: