User Guide
146 Chapter 4: Writing and Debugging Scripts
Then you can type either of the following (the variable name followed by a period):
my_array.
my_cam.
You will see code hints for the Array and Camera object, respectively, appear.
For objects that appear on the Stage, use the suffix in the Instance Name text box in the Property
inspector. For example, to display code hints for MovieClip objects, use the Property inspector to
assign instance names with the suffix
_mc to all MovieClip objects. Then, whenever you type the
instance name followed by a period, code hints appear.
Although suffixes are not required for triggering code hints when you strictly type an object, using
them consistently helps make your code understandable.
The following table lists the suffixes required for support of automatic code hinting:
Object type Variable suffix
Array _array
Button _btn
Camera _cam
Color _color
ContextMenu _cm
ContextMenuItem _cmi
Date _date
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