Ian,
Flash doesn't have the concept of constants, so you couldn't
enforce a constant even if you wanted to (except by a hack like
defining a null set() function, but that's beside the point a bit)...
you can only suggest that specific things should be constant by
convention
It's not really beside the point. We define constants in this way...
class Test {
public static function get SOME_CONSTANT():String {
return "value";
}
}
...which works perfectly.
PS. Sorry if I sounded a little short in the above e-mail; I sent it
in a hurry and forgot to add relevant smilies :o)
--
Steve Webster
Head of Development
Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com