Adobe Extending Flash Professional CS4 Bedienungsanleitung Seite 277

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 560
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 276
255
EXTENDING FLASH CS4 PROFESSIONAL
flash object (fl)
Usage
fl.showIdleMessage(show)
Parameters
show A Boolean value specifying whether to enable or disable the warning about a script running too long.
Returns
Nothing.
Description
Method; lets you disable the warning about a script running too long (pass false for show). You might want to do this
when processing batch operations that take a long time to complete. To re-enable the alert, issue the command again,
this time passing
true for show.
Example
The following example illustrates how to disable and re-enable the warning about a script running too long:
fl.showIdleMessage(false);
var result = timeConsumingFunction();
fl.showIdleMessage(true); ;
var result = timeConsumingFunction();
fl.sourcePath
Availability
Flash CS4 Professional.
Usage
fl.sourcePath
Description
Property; a string that contains a list of items in the global ActionScript 3.0 Source path, which specifies the location
of ActionScript class files. Items in the string are delimited by semi-colons. In the authoring tool, the items are specified
by choosing Edit
> Preferences > ActionScript > ActionScript 3.0 Settings.
Example
The following example adds the /Classes folder to the global ActionScript 3.0 Source path:
fl.trace(fl.sourcePath);
fl.sourcePath = "/Classes;" + fl.sourcePath;
fl.trace(fl.sourcePath);
See also
fl.flexSDKPath, fl.externalLibraryPath, fl.libraryPath, document.sourcePath
Seitenansicht 276
1 2 ... 272 273 274 275 276 277 278 279 280 281 282 ... 559 560

Kommentare zu diesen Handbüchern

Keine Kommentare