Creating A PLAY Button with ActionScript 3.0

Wrap and Review

Thus begins your long and illustrious carreer as an ActionScript 3.0 programmer. There was alot of new information in this lesson, so don't feel bad if you didn't get it all. We'll be returning to these concepts again and again.

What We Did

  1. Brought up the ActionScript window
  2. Used the stop(); method to stop the timeline
  3. Created a function named playTimeline that runs the play(); method
  4. Added an event listener that calls the playTimeline function when a button is clicked
  5. Created a button with the instance name bPlay

Self-Check for Understanding

There's much more you can do with the look of your buttons. Try inserting a MovieClip and adding a Glow effect to the Over state:

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player