Events don't bubble by default.
So if you're depending on the Cairngorm Front Controller to pick them up,
and the object dispatching the event isn't directly below the Application,
you need to enable event bubbling.

new DynamicEvent("myType", true);

Cheers,
Nate

On Mon, Jan 12, 2009 at 11:48 AM, flexcoder2008 <djohnso...@yahoo.com>wrote:

>   Well, I want to dispatch the dynamicEvent from the actionscript class
> (which is a Cairngorm command) and I want my module to listen for that
> event.
>
> Since the module event handler code is not being hit, I thought I
> might need to register this event with the compiler (perhaps my
> terminology is wrong - sorry). I know that when using a component,
> you use the [Event] metadata tag to announce that the component
> dispatches a particular event. I thought that I might have to do the
> same thing with an actionscript class.
>
> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>,
> "kylewburke" <monk...@...> wrote:
> >
> > What do you mean by "register"? Do you want to listen for that event
> > or dispatch one?
> >
> > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>,
> "flexcoder2008" <djohnson29@> wrote:
> > >
> > > I have seen numerous examples of registering a dynamicEvent in a
> > > component's mxml such as:
> > >
> > > [Event (name="rowSelected", type="mx.events.DynamicEvent")]
> > >
> > > If I have an actionscript class that dispatches a dynamicEvent, what
> > > is the syntax for this?
> > >
> > > I want to dispatch a dynamicEvent from an actionscript class, and I
> > > want my module to listen for that event.
> > >
> >
>
>  
>



-- 

Cheers,
Nate
----------------------------------------
http://blog.natebeck.net

Reply via email to