The Armor Games website will be down for maintenance on Monday 10/7/2024
starting at 10:00 AM Pacific time. We apologize for the inconvenience.

ForumsProgramming ForumAttaching sound to a movie clip. As2.

3 5721
Seth23KvK
offline
Seth23KvK
15 posts
Nomad

How do you attach a sound to a movie clip in a hitTest? I am trying to get it to play "blackhole"?

  • 3 Replies
Xinito
offline
Xinito
109 posts
Nomad

Check google, I think its easier for AS3 to do sounds..

Seth23KvK
offline
Seth23KvK
15 posts
Nomad

I need it in As2 though. My whole game is in As2.

WhiskeyedJack
offline
WhiskeyedJack
80 posts
Shepherd

Try this

//AS2
var hitSound= new Sound();
hitSound.attachSound("blackhole"


To play the sound:

hitSound.start(0, 1); // 0 seconds delay, play 1 time


If you need to stop the sound:

hitSound.stop();
Showing 1-3 of 3