Definitely, I'd love to see what you've done! It helps to see how
other people design for sure.
I thought about using something like that viewStateMachine, and I was
also thinking maybe you could make a StateController, like the
ButtonController or whatever in OpenFlux, where you'd place all your
state logic. But then I started using URLKit and I sometimes put the
state name in the URL, so that made things a bit tricky.
I checked out Flex 4's code and it seems that they did something like
this layout pattern for changing the state of Skins on their
FxComponents. Check out my comment on the Adobe site:
http://opensource.adobe.com/wiki/display/flexsdk/Enhanced+States+Syntax
I think having the layouts take care of the state changing for you
would be really neat. Then there's also the whole issue of navigation
in Flex, which requires a lot of state changing. I've been thinking
about "navigation" as basically a series of nested layouts, so maybe
sometime down the road it would be possible to incorporate navigation
state changes into "navigation layouts". Then integrating this into
URLKit... And then you'd have a pretty powerful starting point for
building really complex applications it seems....
Best,
Lance
On Nov 30, 7:44 am, "Patrick Lemiuex" <
patricklemi...@gmail.com>
wrote:
> Lance,
>
> I am using a type of stateMachine pattern that I call a
> viewStateMachine, I set the layout from inside a switch insisde each
> state object. The state is set by my application, and it propagets
> to the system with events. I prefer more simple type objects, state
> objects, when my app changes state, i just set the style on my
> layouts. I am using a bunch of different layouts like you.. I like
> your idea, i think the layout classes need a little more to be fully
> baked... like the ability to know when a whole list has been rendered
> etc.
>
> Sounds like you are doing a lot with products, do you have any need
> for scrolling a virtualized collecton with these? I do. If you want i
> can send you an example of what I have done. it's pretty easily
> actually.
>
> Thanks,
> Patrick
>