RE: [flexcoders] Cairngorm 2 and mx:States

2006-04-02 Thread Alex Uhlmann
You can do this the same way as you would have done using a ViewStack
approach. As Scott said, you can store the state representations and a
workflow property in your model. The only differences are in your view.
Instead of binding a method to the ViewStack's selectedChild instance,
you could bind a method to the view's currentState property, which calls
a method that returns the state string instead of a Container or
UIComponent instace as done using a ViewStack. The state strings could
be defined in your view's mx:states objects as Scott said.

Best,
Alex

Alex Uhlmann
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 sof4real03
Sent: 02 April 2006 02:42
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm 2 and mx:States

As I'm implementing the usage of the Cairngorm 2 microarchitecture on a
project, I came across a question regarding the new Flex 2 States
concept and how to best implement it with Cairngorm. My feeling is the
States should be defined in the ModelLocator. That would imply the Model
knowing more than it should about the views. I wonder if anyone has come
across this matter and would be able to provide any insight.

Thanks,
Sof





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




[flexcoders] Cairngorm 2 and mx:States

2006-04-01 Thread sof4real03
As I'm implementing the usage of the Cairngorm 2 microarchitecture on
a project, I came across a question regarding the new Flex 2 States
concept and how to best implement it with Cairngorm. My feeling is the
States should be defined in the ModelLocator. That would imply the
Model knowing more than it should about the views. I wonder if anyone
has come across this matter and would be able to provide any insight.

Thanks,
Sof





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




Re: [flexcoders] Cairngorm 2 and mx:States

2006-04-01 Thread Scott Langeberg



Actually, application state can be stored in the Model. If you look at the login example, you'll see them storing a workflowState variable. However, if you're talking about your views, then that is probably the proper time to use the mx:States objects.
ScottOn 4/1/06, sof4real03 [EMAIL PROTECTED] wrote:



As I'm implementing the usage of the Cairngorm 2 microarchitecture on
a project, I came across a question regarding the new Flex 2 States
concept and how to best implement it with Cairngorm. My feeling is the
States should be defined in the ModelLocator. That would imply the
Model knowing more than it should about the views. I wonder if anyone
has come across this matter and would be able to provide any insight.

Thanks,
Sof









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



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  









-- : : ) Scott






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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.