Re: [flexcoders] Cairngorm event types
Hi Ralf, nice idea, thanks! - Nils. Ralf Bokelberg wrote: > You can use full qualified event names to avoid name clashes, eg. > > package de.bokelberg.bigproject.myview > { > class UpdateEvent extends Event > { > public static const EVENT_ID : String = > "de.bokelberg.bigproject.myview.Update"; > //... > } > } > > Cheers > Ralf. > > On Dec 13, 2007 2:22 PM, Nils Millahn <[EMAIL PROTECTED]> wrote: > >> >> >> >> >> Hi everybody, >> >> I've started using Cairngorm on a couple of projects and wondered where >> people generally define their event type identifiers. >> >> The FrontController/EventDispatcher setup requires unique event names >> across the application, which is hard to control on large projects with >> multiple developers (or when further development is done at a later stage). >> >> So I'm thinking that it would be easier to define event names as 'static >> const' in a single class 'CairngormEventNames, which in turn could be >> used in the specific event classes. A bit cumbersome but easier than >> going through each event class and checking that event names don't overlap. >> >> What is everybody else doing in this respect? >> >> cheers - Nils. >> >> >> > > > -- > 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 > > > > > >
Re: [flexcoders] Cairngorm event types
You can use full qualified event names to avoid name clashes, eg. package de.bokelberg.bigproject.myview { class UpdateEvent extends Event { public static const EVENT_ID : String = "de.bokelberg.bigproject.myview.Update"; //... } } Cheers Ralf. On Dec 13, 2007 2:22 PM, Nils Millahn <[EMAIL PROTECTED]> wrote: > > > > > > > Hi everybody, > > I've started using Cairngorm on a couple of projects and wondered where > people generally define their event type identifiers. > > The FrontController/EventDispatcher setup requires unique event names > across the application, which is hard to control on large projects with > multiple developers (or when further development is done at a later stage). > > So I'm thinking that it would be easier to define event names as 'static > const' in a single class 'CairngormEventNames, which in turn could be > used in the specific event classes. A bit cumbersome but easier than > going through each event class and checking that event names don't overlap. > > What is everybody else doing in this respect? > > cheers - Nils. > >
RE: [flexcoders] Cairngorm event types
I define the event constants in the event class itself, and saves on an import. Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nils Millahn Sent: Thursday, December 13, 2007 8:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm event types Hi everybody, I've started using Cairngorm on a couple of projects and wondered where people generally define their event type identifiers. The FrontController/EventDispatcher setup requires unique event names across the application, which is hard to control on large projects with multiple developers (or when further development is done at a later stage). So I'm thinking that it would be easier to define event names as 'static const' in a single class 'CairngormEventNames, which in turn could be used in the specific event classes. A bit cumbersome but easier than going through each event class and checking that event names don't overlap. What is everybody else doing in this respect? cheers - Nils. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Cairngorm event types
Hi everybody, I've started using Cairngorm on a couple of projects and wondered where people generally define their event type identifiers. The FrontController/EventDispatcher setup requires unique event names across the application, which is hard to control on large projects with multiple developers (or when further development is done at a later stage). So I'm thinking that it would be easier to define event names as 'static const' in a single class 'CairngormEventNames, which in turn could be used in the specific event classes. A bit cumbersome but easier than going through each event class and checking that event names don't overlap. What is everybody else doing in this respect? cheers - Nils.