or simply do your flash with "transparent background" and the javascript to call would be something as simple as that: <script> changeBg(newcol) { document.bgcolor = newcol; } </script>