PDA

View Full Version : Using JavaScript With Flash



tomyknoker
04-22-2007, 09:52 AM
Hi all,

I have the following JavaScript


<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" object
function changeBgColor(newBgColor) {
if (window.document && window.document.bgColor) {
document.bgColor = newBgColor;
}
}
-->
</script>

I then have this in Flash, which controls the bg colour...


on (press) {
getURL ("JavaScript:changeBgColor('#336600')");
}

I want to instead fade an image into the background not change the colour... Anyone seen a script like this?