Flash MX Naming Conventions: by Type | by Prefix
Updated: June 4, 2005
This document is intended to assist in the development of naming conventions for Flash MX. Below is a table that contains a list of name types and/or data types and a column for a three-letter prefix to be used as the convention in Flash MX (in order to take advantage of MX’s context sensitive “inspector”).
| Array | rra | rraStimSet |
| Boolean | bln | blnDirX |
| Button | btn | btnStim0 |
| Class | cls | clsStuff |
| Color (object) | clr | clrClownNose |
| Counter | ctr | ctrStim |
| Date | dte | dteLastMod |
| Function | fnc | fncProgIndLaunch |
| Increment | icr | icrStim (i.e., used in for loops) |
| Index | idx | idxStim |
| Method | mth | mthHoseClip |
| Movie Clip | mvc | mvcProgIndChar |
| Number | nbr | nbrCorrectClicks |
| Object | ojt | ojtText |
| Parameter | prm | prmTarget (used for passed parameters of unknown data-type) |
| Quantity | qty | qtyTiming |
| Queue | que | queIinstruct |
| Reference | rfc | rfcClip |
| Sound | snd | sndSqueak |
| String | stg | stgUserName |
| Text Format | tfm | tfmDisplay |
| Textfield | tfd | tfdStim0 |
| Unknown | NA | *see “Parameter” |
| XML | xml | xmlData |
| XML Socket | xsk | xskWhatever |
|