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
- Brought up the ActionScript window
- Used the stop(); method to stop the timeline
- Created a function named playTimeline that runs the play(); method
- Added an event listener that calls the playTimeline function when a button is clicked
- 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: