Adobe Extending Flash Professional CS4 Uživatelský manuál Strana 356

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 560
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 355
334
EXTENDING FLASH CS4 PROFESSIONAL
outputPanel object
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
fl.trace(), and works in the same way as the trace() statement in
ActionScript.
To send a blank line, use outputPanel.trace("") or outputPanel.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.outputPanel.trace("Hello World!!!");
var myPet = "cat";
fl.outputPanel.trace("\nI have a " + myPet);
fl.outputPanel.trace("");
fl.outputPanel.trace("I love my " + myPet);
fl.outputPanel.trace("Do you have a " + myPet +"?");
Zobrazit stránku 355
1 2 ... 351 352 353 354 355 356 357 358 359 360 361 ... 559 560

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

Žádné komentáře