Hi Tim,

It depends what the relationship of your two MXML files are to your
application. In general, when building reusable view and business
components, I would not suggest using Cairngorm in them. Think about
Cairngorm as the glue of your application components. It does not
relieve you on building such components and should not interfere with
them.

-If your two MXML files belong to one reusable view component, I'd
suggest using Flex's EventDispatcher (no CairngormEvent and no Cairngorm
knowledge at all). 

-If your two MXML components are actually changing a state of your
application, I would usually suggest to first dispatch a view related
event (using Flex's EventDispatcher and no Cairngorm) to the outer,
application domain specific view component, fit it into an application
related CairngormEvent (using Flex's EventDispatcher with a
CairngormEvent event object) that dispatches to a Cairngorm Command. The
Command represents a reusable request to your client and/or serverside
business logic. In here, you can manipulate your business logic that can
be found on ModelLocator. The application domain specific view
components bind to that state via ModelLocator. Other smaller view
components inside them bind to the outer view component's properties. 


Hope that helps,
Alex

Alex Uhlmann
Technical Consultant (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK
p: +44 (0) 131 338 6969
m: +44 (0) 7917 428 951 
[EMAIL PROTECTED] 


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sufibaba
Sent: 07 February 2006 22:21
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm 2 event question.

Hi all,

Situation:

  form1.mxml ( contains a combobox)
  form2.mxml ( contains a listbox)

When the form1 combobox is selected, form2 listbox should change based
on form1 combobox selection.

With the new Cairngorm2, what would be a best practice approach to
handle the above situation.  

Cheers,

Tim






--
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



 




--
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/

<*> 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/
 



Reply via email to