Change document.bgColor using JS

I’m using this code in the head of my file…

SCRIPT language="javascript" type="text/javascript">function changeColor(c){document.bgColor=c}

And this in the body to trigger a change in background color onClick…

A HREF.="#colours" onClick='changeColor("#950090")'">IMG SRC="flash.jpg"<./A>

Now, how do I go about putting this code into a flash animation so that a click of a button would change the HTML file’s background color. I’m guessing I need to use the FSCommand, but I’m not sure how? Any help would be much appreciated!

thanks,

Obviously, the HTML isn’t entirely correct. I couldn’t get it to show up without adding periods and removing some of the tag openers.