Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 283

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 282
261
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
Returns
Nothing.
Description
Method; sends a text string to the Output panel, terminated by a new line, and displays the Output panel if it is not
already visible. This method is identical to
outputPanel.trace() and works in the same way as the trace()
statement in ActionScript.
To send a blank line, use fl.trace("") or fl.trace("\n"). You can use the latter command inline, making \n a part
of the message string.
Example
The following example displays several lines of text in the Output panel:
fl.outputPanel.clear();
fl.trace("Hello World!!!");
var myPet = "cat";
fl.trace("\nI have a " + myPet);
fl.trace("");
fl.trace("I love my " + myPet);
fl.trace("Do you have a " + myPet +"?");
fl.version
Availability
Flash MX 2004.
Usage
fl.version
Description
Read-only property; the long string version of the Flash authoring tool, including platform.
Example
The following example displays the version of the Flash authoring tool in the Output panel:
alert(fl.version); // For example, WIN 10,0,0,540
fl.xmlui
Availability
Flash MX 2004.
Usage
fl.xmlui
Zobrazit stránku 282
1 2 ... 278 279 280 281 282 283 284 285 286 287 288 ... 564 565

Komentáře k této Příručce

Žádné komentáře