views:

43

answers:

0

I am trying to play a soundf from my media controller in Flash using the following code:

on (click) { kirupaSound = new Sound(this); kirupaSound.attachSound("sample.mp3"); kirupaSound.start(0, 99); kirupaSound.test();

The sound plays but I can't figure out how to check if it is already playing and if so pause. I have tried various things but am completely new to Actionscript. Any help greatly appreciated.

related questions