Chapter 14. Applying Effects, Transitions, and Filters
IN THIS CHAPTER
“The Royal Hawaiian was wonderful...it was the ideal life. After twenty-four hours of it we were bored stiff.”
Certain things may come to mind when you think about applying effects to your applications. Wining and dining. Sugar and spice. Whistles and bells. Sliced bread. OK, maybe not sliced bread, but you get the point: these are some of our favorite things.
So where do effects fit into the big picture? Like the previously mentioned niceties, effects should come in small doses and accentuate a larger experience. How would pumpkin pie taste if someone dumped an entire bottle of nutmeg into the filling? And how do you feel about emergency sirens at 3 a.m.? Not good. But with the right amount of nutmeg, the pie tastes great. Similarly, the sound of an air horn at a hockey game gets people excited. Think of effects in terms of these contexts. Less is more.
How then can effects benefit your applications? Generally effects, transitions, and filters—called behaviors when referenced altogether—should be used as attention-getters, drawing attention to the right thing at the right time. Rollover effects on menus and buttons provide the classic example of purposeful animation. However, behaviors can also be fun and expressive, and maybe there’s a place for that in your applications.
This chapter introduces you to Flex behaviors and shows you how to apply ...
Get Learning Flex 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.