Hi all , I am trying to add a sound to the LineTo() method. Inside a function I draw the Line and immediately call the Sound file. Here is the code, Is this right ? (jus giving the function here )
function leaderRT(e:MouseEvent){
if(flag) {
graphics.lineStyle(1, 0xCC00FF);
graphics.lineTo(e.localX,e.localY);
var sound:Sound= new Sound();
sound.load(new URLRequest(“Swoosh.wav”));
sound.play();
}
I want the sound to be played until the line is drawn. Wat modification has to be done ? Also when I execute the above file I get the Stream error ? solutions ?