The Companion Site for the Book ActionScript 3.0 Game Programming University

 
About the Book

Book Source Files (Second Edition)

Book Source Files (First Edition)

Book Table of Contents

Book Corrections

All Articles

Steve wrote in about the Toggle Button episode.
Hi Gary, I'd followed your AS3 toggle button tutorial to Play/Pause a song. 1. What can I do to allow the song to be played again by clicking the toggle button? 2. What is needed to make the toggle button to take on the "play" state when the song has finished on its own?
Expanding on the earlier tutorial about creating a Toggle Button, here's how to link the toggle button to a piece of music in the library and to have the toggle button react properly when the song is done. Download the source file.