301 Redirect called from Flash crashes Internet Explorer -


i have flash game @ site. there button "download full version" calls javascript function:

function download() {     window.open('http://mysite.com/goto/game1'); } 
  1. http://mysite.com/goto/game1
    redirects via 301 redirect in .htaccess to
  2. http://mystatisticsite.com/goto/mysite/game1
    redirects via php header('location: '.$downloadurl); to
  3. http://gamesite.com/downloadgame?id=mysite
    redirects to
  4. http://gamesite.com/game.exe

and here new opened ie window closes (getting last url, not in middle of redirects).

i have added html-link http://mysite.com/goto/game1 , javascript-link onclick="download()" @ same page. both working great, link flash game crashes ie.

i have tried call download() "ie developer tools" -> script -> run script, crashes ie too.

suppose might strange security ie thing doesn't show "are sure?" closes new window.

firefox & chrome download game without problems.

one of smart colleagues has found answer.

the problem in internet explorer didn't relationship click in flash , downloaded file because flash not in transparent mode wasn't connected ie page.

but flash movie crashed when added transparent mode manually.

the problem fixed using swfobject transparency:

var = new swfobject("movie.swf", "mymovie", "400", "100%", "8", "#336699"); so.addparam("wmode", "transparent"); 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -