Adobe Flash Professional CS3 Uživatelský manuál Strana 399

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 527
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 398
FLASH CS3
User Guide
393
Comments and code hints
You can also use ActionScript comments to specify an objects class for code hints. In the following example, a
comment tells ActionScript that the class of the
theObject instance is Object, and so on.
// Object theObject;// Array theArray;// MovieClip theMC;
If you subsequently enter theMC followed by a period, code hints that display the list of MovieClip methods and
properties appear. If you enter
theArray followed by a period, code hints that display the list of Array methods and
properties appear, and so on.
Instead of this technique, however, Adobe recommends that you use strict data typing or suffixes, because these
techniques enable code hints automatically and make your code more understandable.
Format code
Your code can be formatted and indented automatically or manually. If you use dynamic font mapping, you ensure
that the correct fonts are used for multilingual text.
Set Auto Format options
1
Do one of the following:
From the panel menu (at the upper-right corner of the Actions panel), select Preferences.
In the Script window, select Edit > Preferences (Windows) or Flash > Preferences (Macintosh).
Error _err
LoadVars _lv
LocalConnection _lc
Microphone _mic
MovieClip _mc
MovieClipLoader _mcl
PrintJob _pj
NetConnection _nc
NetStream _ns
SharedObject _so
Sound _sound
String _str
TextField _txt
TextFormat _fmt
Video _video
XML _xml
XMLNode _xmlnode
XMLSocket _xmlsocket
Object type Variable suffix
Zobrazit stránku 398
1 2 ... 394 395 396 397 398 399 400 401 402 403 404 ... 526 527

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

Žádné komentáře