How can I get sound to play on click in Flash?
Observing members:
0
Composing members:
0
3 Answers
It is a little hard to explain so I took a screenshot. here
Import the mp3 (or AIFF) to the library. View the properties on it. Give it a class. Use the code in the image. Should be pretty simple.
This is using Actionscript 3, I don’t know if it will work with earlier versions.
Here is the actual fla file.. Link
gotoAndLearn has lots of good flash tutorials, including sounds stuff.
scroll down a bit and you’ll see “Actionscript 3 Sound Basics” and “Sound Spectrum Display” tutorials. both useful.
pretty much where i learned all my flash/actionscript 3 skills…..but i hate flash now.
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.