User Guide
80 Chapter 3: Using Best Practices
However, the following ActionScript throws an error and does not allow you to use code
completion:
var myScrollPane:ScrollPane; //no code completion, throws error
Using recommended suffixes
You can use the following suffixes to generate code completion in the Actions panel. They are
recommended because suffixes encourage consistency in code that might be shared among Flash
authors. Although suffixes are not necessary for code completion in ActionScript 2.0 documents,
using consistent suffixes helps other developers understand how your ActionScript works.
Object 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
NetConnection _nc
NetStream _ns
PrintJob _pj
SharedObject _so
Sound _sound
String _str
TextField _txt
TextFormat _fmt
Video _video