PureMVC Architects Lounge

Announcements and General Discussion => Getting Started => Topic started by: earmountaina on May 22, 2008, 03:24:53



Title: Flex event won't propagate from toolbar to canvas
Post by: earmountaina on May 22, 2008, 03:24:53
Hi,

I think I figured it out. The event that I'm emitting in the Toolbar (xmxl) doesn't seem to have anything to do with the INotification propagation. So I wired up the button event to a notification handler in the toolbar that turns around an sends a Create_Text notification that is seen by the canvas. This make sense. Anyway, I wanted to post this ASAP so people didn't spend time on it. Thanks.

-- Mike


Title: Re: Flex event won't propagate from toolbar to canvas
Post by: puremvc on May 22, 2008, 08:49:34
You don't want to be sending notifications from view components themselves. That couples the component to the framework and hampers portability.
If you send an event that a Mediator is listenint for then have the mediator send the Notification, the view component could be reused outside the context of a PureMVC app.

-=Cliff>


Title: Re: Flex event won't propagate from toolbar to canvas
Post by: earmountaina on May 23, 2008, 05:34:30
Thanks for the clarification Cliff. I didn't mean to delete the original comment. I just don't know how to work with this forum yet. I'm really appreciative of this framework.  -- Mike