Adobe FLASH CS3 PRO User Manual page 398

Hide thumbs Also See for FLASH CS3 PRO:
Table of Contents

Advertisement

Object type
Error
LoadVars
LocalConnection
Microphone
MovieClip
MovieClipLoader
PrintJob
NetConnection
NetStream
SharedObject
Sound
String
TextField
TextFormat
Video
XML
XMLNode
XMLSocket
Comments and code hints
You can also use ActionScript comments to specify an object's class for code hints. In the following example, a
comment tells ActionScript that the class of the
// Object theObject;// Array theArray;// MovieClip theMC;
If you subsequently enter
properties appear. If you enter
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
Do one of the following:
1
• From the panel menu
• In the Script window, select Edit > Preferences (Windows) or Flash > Preferences (Macintosh).
Variable suffix
_err
_lv
_lc
_mic
_mc
_mcl
_pj
_nc
_ns
_so
_sound
_str
_txt
_fmt
_video
_xml
_xmlnode
_xmlsocket
theObject
followed by a period, code hints that display the list of MovieClip methods and
theMC
followed by a period, code hints that display the list of Array methods and
theArray
(at the upper-right corner of the Actions panel), select Preferences.
instance is Object, and so on.
FLASH CS3
392
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash cs3 professional

Table of Contents