Page is a not externally linkable
Rain_Lover - 5:36 pm on Jul 24, 2011 (gmt 0)
Indeed, the bgcolor (even the default) appears to be overwriting the style.backgroundColor - which still seems to be present, but is behind the embed bgcolor?
bgcolor - [hexadecimal RGB value] in the format #RRGGBB. Specifies the background color of the movie. Use this attribute to override the background color setting specified in the Flash file. This attribute does not affect the background color of the HTML page.
Source: [kb2.adobe.com ]
Setting bgcolor="transparent" in the HTML shows the style.backgroundColor, but a darker shade - I suspect 'transparent' is not completely transparent, or may be that wmode attribute is required as well?!
The bgcolor value shouldn't be set to transparent -- just a hexadecimal RGB value. That's why browsers don't interpret it correctly:
<!DOCTYPE HTML>
<title>Test</title>
<embed bgcolor="transparent" src="http://www.w3schools.com/media/bookmark.swf" width="400" height="40" type="application/x-shockwave-flash" />
It shouldn't be green, should it?
However, looking at your code, if you also set wmode="transparent" then this appears to work OK (you don't need to set bgcolor at all) - You can then set the backgroundColor in the CSS
What if a user decides to display the flash default background color?
For example: [rain-lover.webs.com ]
The code you have above doesn't work because where you are trying to output x and y you are not in a script section!
Would you mind helping me correct it? All I want is define three variables and change x & y based on the z value.