Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

13.1. Behaviors

All Flex visual components have a special set of behaviors built in. These behaviors let you easily add effects to your components, making really expressive applications quick and easy. They're essentially limitless, but the most common effects create functionality like fading a component's visibility in or out or showing the movement of a component from one place to another with an animation. Other common effects are sound effects, which are noises that can be played for certain events or actions.

Behaviors are really just an effect paired with a trigger, or an action that occurs in the application. This is typically from an event such as a mouse click, a mouse rollover, or some other event that a component dispatches, like when it's created for the first time or when it's hidden or shown.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial