tryphy 0 Junior Poster in Training

Hi,
I am trying to do with this code. . But i coudnt able to get it work.
It like i embed a background(bg) music in html and also wrote a javascript to stop playing the audio.

The script goes like this..

<script language="javascript">
function stopAudio() {
document.audio.play(false);
// I even tried puting the code stop() as below, yet doesnt work..
// document.audio.stop();
}
</script>
</head>

<body>
<embed name="audio" src="aa.mp3" loop="true" width="300" height="90" hidden="true" autostart="true"> </embed>

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="80" height="30">
<param name="movie" value="start.swf" />
<param name="quality" value="high" />
<embed src="start.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="80" height="30"></embed>
</object>
</body>

================================================== ====
In my flash, I created a button and in the button, i have this action script to call the javascript from the html.

on (press) {
getURL("javascript:stopAudio()");
}

When i tried the html, The audio is playing and when i click the button, the audio nver stops..
is there anywhere i have gone wrong?

Thanks for your help.

Regards,
Tryphy.