What does Sound.attachSound do?

Yo,

just been playing with the sound object in flash MX. pretty clear on everything apart from :

Sound.attachSound not sure what this does or why its needed. I think it gives the sound a name or something? surely this is the same as going to library --> linkage then naming it? so why would u need it?

I have been using sound to do stuff, and I havn’t used this at all but can do what I want, so I just want to understand what its for and can you give me an example when its imperitive to use it?

cheers!

It is to play sound from within the library instead of dragging it on the stage.

It is the attachMovie() of the Sound object :wink:

Check out this tutorial…

http://www.kirupa.com/developer/actionscript/sound.htm

thanks.