By setting your sound object to "streaming" and using a couple of simple action scripts to start and pause your sound, 100% precision. And that's what we're going to do in this tutorial. :) By using "Streaming" sound, it means we are going to spread the music over the timeline of flash. We will place the object into a movie clip and it will be played normally like any flash animation once the "play" button is pressed. Pausing the movie clip in which the object resides will also result in pausing the sound object. We can resume that by using the "play" action again.
Before we start with sound we need to make some changes. You may have noticed that our ship shoots bullets as much as the player press the space bar, that's not right as it makes the game much easier.