The most important thing about naming conventions is actually having one ;-) Which one is not that important (IMO) as long as it's clear and consistent and you (and your team) stick by it.
I use the "Handler" suffix for event handlers, often in combination with the instance id/name that invokes it. listItemClickHandler, submitClickHandler, videoCompleteHandler, etc.. Where the first part would be the id of a control. I think Adobe (FLex 2 framework) sometimes uses an underscore between the instance id and the suffix videoID_completeHandler listID_itemClickHandler buttonID_clickHander etc.. regards, Muzak ----- Original Message ----- From: "Fabio Serra" <[EMAIL PROTECTED]> To: <flexcoders@yahoogroups.com> Sent: Thursday, December 20, 2007 11:36 AM Subject: Re: [flexcoders] AS 3 and Flex naming convention > Muzak wrote: >> There's a non-official guide here: >> >> http://blog.dclick.com.br/2007/02/13/adobe_flex_coding_guidelines_english/ >> http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-english.pdf >> >> > > Thank you, it is very interesting and I follow the most part of the > rules. I haven't found any suggestion how to name event and event handlers. > Looking at UIComponent.as it seems that events doesn't have any special > suffix (eg itemSelectedEvt or itemSelectedEvent) instead of function > handler that always use the "handler" suffix (eg > updateCompleteHandler(event:FlexEvent):void). > I don't like very much to use a suffix for event handlers because at > some point they create a "semantic" friction, but if I have to do I > would probably prefer to use the prefix "on" (onCreationCompletePod) as > in the dashboard application: > http://examples.adobe.com/flex3/labs/dashboard/srcview/index.html -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/