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

TYPE
PREFIX
EXAMPLE
ArrayrrarraStimSet
BooleanblnblnDirX
ButtonbtnbtnStim0
ClassclsclsStuff
Color (object)clrclrClownNose
CounterctrctrStim
DatedtedteLastMod
FunctionfncfncProgIndLaunch
IncrementicricrStim (i.e., used in for loops)
IndexidxidxStim
MethodmthmthHoseClip
Movie ClipmvcmvcProgIndChar
NumbernbrnbrCorrectClicks
ObjectojtojtText
ParameterprmprmTarget (used for passed parameters of unknown data-type)
QuantityqtyqtyTiming
QueuequequeIinstruct
ReferencerfcrfcClip
SoundsndsndSqueak
StringstgstgUserName
Text FormattfmtfmDisplay
TextfieldtfdtfdStim0
UnknownNA*see “Parameter
XMLxmlxmlData
XML SocketxskxskWhatever