Flash passing info to javscript HELP

So I have a simple need. I want to have a button in flash call a javascript function that changes the css background image. Only for some reason it’s not working. I do know the javascript works, because I can put a html button that calls the function and the background image changes. A little help please!

here’s the code.

<html>
<head>
<style>
body {
background-repeat: repeat;
background-position: center center;
background-image: url(greencarpet.jpg);
}
</style>
<script>
<!–
function changeImage() {
newImage = “url(redwallpaper.jpg)”;
document.body.style.backgroundImage = newImage;
}
//–>
</script>
</head>
<body>
<object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0” width=“300” height=“300”>
<param name=“movie” value=“backgroundchangeflash.swf” />
<param name=“quality” value=“high” />
<embed src=“backgroundchangeflash.swf” quality=“high” pluginspage=“http://www.macromedia.com/go/getflashplayer” type=“application/x-shockwave-flash” width=“300” height=“300”></embed>
</object>
</body>
</html>

then this is the action asigned to my button:

on(press) {
getURL(“javascript:changeImage()”);
}

yet nothing works right! Please help!