Surfing on web I read Ted’s blog that talk about new feature of Flex 4 (codename Gumbo) about states!
So I take a look at opensource.adobe.com page that talks about this new feature… very cool!
Adobe creates a very simple way to add, remove, show and hide components in a Flex application with a new attributes: includeIn and excludeFrom.
In few code rows you can include or remove Flex components:
<!-- Given the states A,B,C --> <m:states> <m:State name="A"/> <m:State name="B"/> <m:State name="C"/> </m:states> <!-- This button will appear in only states A and B --> <Button label="Click Me" includeIn="A, B"/> <!-- This button will appear in states A and B --> <Button label="Button C" excludeFrom="C"/>
If you have a couple of minutes, please read about Flex 4 states, it’s so interesting!
Very cool way to do this! I think that Flex 4 will become the BEST solution to make RIA and desktop application (with AIR obviusly) in IT market!