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”).

PREFIX
TYPE
EXAMPLE
blnBooleanblnDirX
btnButtonbtnStim0
clrColor (object)clrClownNose
clsClassclsStuff
ctrCounterctrStim
dteDatedteLastMod
fncFunctionfncProgIndLaunch
icrIncrementicrStim (i.e., used in for loops)
idxIndexidxStim
mthMethodmthHoseClip
mvcMovie ClipmvcProgIndChar
nbrNumbernbrCorrectClicks
ojtObjectojtText
prmParameterprmTarget (used for passed parameters of unknown data-type)
qtyQuantityqtyTiming
queQueuequeIinstruct
rfcReferencerfcClip
rraArrayrraStimSet
sndSoundsndSqueak
stgStringstgUserName
tfdTextfieldtfdStim0
tfmText FormattfmDisplay
xmlXMLxmlData
xskXML SocketxskWhatever