Adobe Extending Flash Professional CS5 Manuale Utente Pagina 280

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 279
258
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
Returns
Nothing.
Description
Method; sets the active window to be the specified document. This method is also supported by Dreamweaver and
Fireworks. If the document has multiple views (created by Window
> Duplicate Window), the most recently active
view is selected.
Example
The following example shows two ways to activate a specified document:
fl.setActiveWindow(fl.documents[0]);
var theIndex = fl.findDocumentIndex("myFile.fla");
fl.setActiveWindow(fl.documents[theIndex]);
fl.showIdleMessage()
Availability
Flash 8.
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();
Vedere la pagina 279
1 2 ... 275 276 277 278 279 280 281 282 283 284 285 ... 564 565

Commenti su questo manuale

Nessun commento