hello:
this is the first time i’m in this forum, and I would like that you help me with the following problem.
I’ve done a site in flash ([url]www.virtualflyer.net)
I think is because “array” problem.
The javasecript in the main file is the following:
<script language=”JavaScript”>
var backImage = new Array();
backImage[0] = “fondosback/fondo1.jpg”;
backImage[1] = “fondosback/fondo2.jpg”;
backImage[2] = “fondosback/fondo3.jpg”;
backImage[3] = “fondosback/fondo4.jpg”;
function changeBGImage(whichImage){
if(document.body){
document.body.background = backImage[whichImage];
}
}
</script>
Then, in the swf I wrote:
on (press) {
getURL (“JavaScript:changeBGImage(‘2’)”);
}
O safari you see how the background changes, but not in explorer.
I tried not using “Array”, with:
<script language=”JavaScript”>
function changeBgColor(newBgColor) {
document.bgColor = newBgColor;
}
</script>
And it works in explorer (changing the colors), but not in safari..
Is there a way to change background images from swf that works in explorer.
Please, help me, it’s important for my work.
Thanx very much,
Cristina