Function Sound
I imported a sound file, but do not know how to use the functions. I will give an example of what I'm trying to do ...
The name of the imported file is "sound" and I want that when an object touches the other is called the sound.
if(ball.hitTestObject(wall)) {
// Sound
gotoAndPlay(2);
}
The where is "// sound" I do not know what use to call the sound, can anyone help me?
