Behaviors let you add animation and motion to your application in response to user or programmatic action. For example, you can use behaviors to cause a dialog box to bounce slightly when it receives focus, or to slowly fade in when it becomes visible. You build behaviors into your applications by using MXML and ActionScript, and the two parts of a behavior: triggers and effects.