So, I have my nice little flash movie playing along, and I issue some commands to change the bg color
which seems to play nice in most browsers.Code:getURL("javascript:document.body.style.backgroundColor='#000000'; void(0);");
Then I get to an area where there is an option for a download
which also works.Code:getURL("http://www.domain.com/file.zip");
HOWEVER, if the download starts, in IE, all further requests to change the window's background color fail. If the download DOESN'T start, it is fine.
Best I can figure is that the download window changes the focus and the further javascript:document commands are being sent to the wrong window.
Okay, so I give my html a name
and then I tell flash to instruct the browser to change THAT windowCode:<script language="javascript" type="text/javascript"> window.name="myWindow"; </script>
and IE still ignores that.Code:getURL("javascript:myWindow.body.style.backgroundColor='#000000'; void(0);");
Any ideas???




Reply With Quote
