Skip to main content
Participating Frequently
February 14, 2013
Answered

How to play a sound on drag and drop?

  • February 14, 2013
  • 1 reply
  • 832 views

I've been tasked with creating a drag and drop game for College, and I would like to make it so that when an object is picked up/clicked on, a small 'pop' sound will play, and when it is successfully placed on a target, a slightly different 'pop' sound will play.

I'm using ActionScript 2.0 on Flash CS5.5.

I've got the drag and drop done, I just need to add the sound counterpart. I've seen some tutorials, but they're way too vague for me.

This topic has been closed for replies.
Correct answer Ned Murphy

Look at using the Sound class.  Search Google using terms like "AS2 Sound tutorial"

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
February 14, 2013

Look at using the Sound class.  Search Google using terms like "AS2 Sound tutorial"

Siderz95Author
Participating Frequently
February 22, 2013

Thanks a lot for that! Managed to get it to work finally.

Sorry for the late response, I've only just decided to get back to doing the work.

Ned Murphy
Legend
February 22, 2013

You're welcome