
Figure 6-6. Dragging and dropping between two lists
This will add “Bad sci-fi” to the list of things I like.
I
realize that this may seem like a silly example because you
may have custom drag-and-drop requirements. But believe me
when I tell you that building your own components so that they
work with the drag-and-drop manager is very easy to do.
States and Transitions
Built into the core of the Flex API is support for different
states in the user interface. For example, a box can be open or
closed. Or a viewing area could be in two rows or three rows.
You can define these states based on your needs and then set
the parameters for each component that changes in each state.
To demonstrate I’ll make a box that gets taller in the open state
and shorter in the closed state. The example starts with a Flex
88 | Chapter 6: More Flex Applications
Commenti su questo manuale