Javascript & flash

I’ve found that script which changes the bgcolor of html background.

<script language="JavaScript">
<!--//The function is quite simple, it takes one argument, "newBgColor" 
//and passes it as the value of the "bgColor" property of the "document" 

objectfunction changeBgColor(newBgColor) {
	if (window.document && 
window.document.bgColor) {	
	document.bgColor = newBgColor;
	}}--></script>

[AS]
on (press) {
getURL (“JavaScript:changeBgColor(’#336600’)”);
}
[/AS]

is it possible to change background images instead of colors?
If yes could you please help me out here.

Thanks.
:run: