Chapter 11.1. Applying a Custom Effect

Effects can be very useful for providing user feedback. As a user is interacting with various parts of your application, you can use effects to send meaningful messages just by using motion. In this exercise, you’ll reproduce an effect that is common in the Mac OSX operating system. On a Mac OSX login screen, if you enter incorrect login information the window shakes as if to say “No, that’s incorrect!” This is quite easy to reproduce in Flex using a Sequence and Move effect. You’ll be making a panel shake when a button is clicked, as shown in Figure 11.1-1.

Panel with a shake motion

Figure 11.1-1. Panel with a shake motion

  1. Create a new ...

Get Creating Visual Experiences with Flex 3.0 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.