If you want the background to change color and not need to paint it, javascript may be a good solution to this problem.
what you change will depend on the insert code, but the parameter you want to change is bgcolor.
in the prototype, javascript will look something like this:
$('yourFlashContainerId').down('[name="bgcolor"]').writeAttribute('value','#000000');
to draw it in flash you can do something like this:
var bg:Sprite = new Sprite(); bg.graphics.beginFill(0x000000); bg.graphics.drawRect(0,0,stage.stageWidth, stage.stageHeight); bg.graphics.endFill(); bg.x = 0; bg.y = 0; addChildAt(bg,0);
This will draw a square with a black background (change the hexadecimal text on line 2 to change the color), set its size to the size of the scene, set x and y to 0, then add it at the bottom of the display stack.
Any of these two methods should work.
Edit: another way:
You can also set the wmode parameter to "transparent" and change the background color containing the div.
assuming your built-in flash memory has the following meanings:
<param name="wmode" value="transparent">
prototype:
$('yourFlashContainerId').setStyle({'background-color':'#000'});
JQuery
$('#yourFlashContainerId').css({'background-color':'#000'});
Native
document.getElementById('yourFlashContainerId').style.background-color="#000";