attachSound is an object used in ActionScript to play music with AS controls, as opposed to having it embedded in the movies timeline. It is called like this:
mySound.attachSound("idName")
You need to call sound.start to have the music clip start playing. With this object, you are able to mute, start, and stop the sound without these actions being directly related to the timeline. I had made a movie using this object, and when the movie replayed at the beginning, the sound loop doubled over itself. I tried to clear the sound at the end with a stop function, but then the sound didn’t stop at all, the ‘mute’ button was rendered useless. In the end, I hacked a solution, to just loop the movie back to the second frame, as opposed to the first frame where the sound is attached. The reason why the sound was acting in this way is because the attachSound object is used to control the sound and get information about it. It acts as an interface between your code and the sound being played. If you delete it, the sound it controls remains and continues to do whatever it was doing, but you no longer have control over it. I think that this is a good thing to understand when beginning to work with sound in Flash. Do you have any tips to share?