?

Log in

No account? Create an account
While doing some research, I stumbled upon Macromedia's ActionScript… - Chaz Meyers [entries|archive|friends|userinfo]
Chaz Meyers

[ website | chazmeyers.com ]
[ profile | view profile ]
[ archive | view archive ]

Links
[Links:| chazmeyers.com Twitter ]

[Jan. 8th, 2004|12:24 am]
Chaz Meyers
While doing some research, I stumbled upon Macromedia's ActionScript Coding Standards [pdf] [googleized html]

The Macromedia Flash MX ActionScript editor has built-in code completion support. In order to take advantage of this, variables must be named in a specific format. The default format is to suffix the variable name with a string that indicates the variable type. Below is a table of supported suffix strings. Supported suffix strings for code completion </td>_date</td>
Object typeSuffix stringExample
String_strmyString_str
Array_arraymyArray_array
MovieClip_mcmyMovieClip_mc
TextField_txtmyTextField_txt
DatemyDate_date
Sound_soundmySound_sound
XML_xmlmyXML_xml
Color_colormyColor_color


Wow. I was wondering why they didn't hack anything so that non-predefined variables would get that popup menu. They just forgot to document how to trigger it. :-P
Well, hopefully they have something more intelligent in mx2004. I read somewhere that AS2.0 is a strongly typed language (huh? based on EMCA?) so it should be able to prompt by keeping track of the type of everything like how Visual Studio does. Ha. Extensions. Who would ever use such a silly convension? ;)
LinkReply

Comments:
[User Picture]From: duckssaymip
2004-01-07 11:13 pm (UTC)
wow who cares?
<3 jess
and mike too
(Reply) (Thread)
[User Picture]From: cpm
2004-01-08 07:24 am (UTC)
I do. No one is asking you to care.
(Reply) (Parent) (Thread)
[User Picture]From: duckssaymip
2004-01-08 08:46 am (UTC)
awww chesteeeeer...

mip
(Reply) (Parent) (Thread)