Maybe I don't fully understand the question. But it seems that you would broadcast the "DeleteGroup" event only once the click of ok was pressed. The broadcast will find the command to do the work and then notify the view helper when done.
Jeff -----Original Message----- From: cazzaran [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 2:13 PM To: [email protected] Subject: [flexcoders] Simple Cairngorm architecture question I have a simple architectural philosophy question regarding Cairngorm. I am using the Contoller, Command, and ViewHelper pattern, which is working out perfectly -- except in one situation... And it's not that I can't get this to work, it's that I'm curious what the proper way to do it would be. I have a delete button that allows my users to delete a Group out of a list. The issue is that I need to provide an Alert box with a OK/Cancel buttons. This alert box needs to be given a listener object with a click() method. My question is where does this belong? In the MXML that shows the Delete button, the DeleteGroupCommand, the ViewHelper associated with the view, or somewhere else entirely? This is a kind of hiccup in the whole Controller to Command flow... Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> 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/

