A lot of Flex developers resort to Flex ‘states’ when adding interactivity and transitions to their applications. I built the sample below to show a colleague that using Flex ‘effects’ are some times easier and involve less code than ‘states’. This simple example (very beginner) shows how you could build a slide out menu bar without the use of states, which I consider a bit difficult to maintain and skin. The code is available for you just below the working sample.
Click the button on the yellow panel to see it slide out like a shelf.
You can cut and paste this code into your FlexBuilder project and test it out. Feel free to use this in any project or app you are working on.
If you know or a more simple way to do this, please feel free to post it on your blog and comment the URL here. If you’ve got other examples of using transitions without states, feel free to post those as well.