Home > Articles > Graphics & Web Design > Dreamweaver & Flash

  • Print
  • + Share This
Like this article? We recommend

Using Behaviors with Flash MX 2004

If you have ever used Dreamweaver, you may be familiar with the concept of behaviors. In Dreamweaver, behaviors can be added to text, images, forms and other HTML elements on the page. Essentially, a behavior is a prewritten JavaScript program. The benefit that behaviors give you is that you do not need to write JavaScript to add rich interaction to your page.

Behaviors are the same in Flash MX 2004. Behaviors can be added to key frames, forms, movie clips, and buttons. You will find that many of the fundamental features, such as loading an SWF movie or JPG, have been added to make programming easier.

I like the concept of behaviors a lot. They are a great tool that lets new users learn what and how to apply actions to a movie very quickly. I encourage you to open up your Actions panel as you add behaviors. A behavior is just ActionScript. With that said, you can learn more about how ActionScript works by seeing how the behaviors are placed onto a Movie Clip or other elements.

After awhile, you will find that you can't help yourself and will begin to tinker with the code created by the behaviors. Be warned. If you do this then you won't be able to have Flash undo the edits you make with the Behaviors panel because Flash will not recognize what is happening.

  • + Share This
  • 🔖 Save To Your Account