Dhtml / goToURL problem

thanks in advance to anyone who can help me with this, essentially a simple question that might take a couple of paragraphs to explain.

i’ve knocked together a basic portfolio at http://www.swurl.org one page of which is a simple flash game at http://www.swurl.org/projects/gt.html

unfortunately, i no longer had the .fla or the .swf of the game on my hard drive, so i decided to set the src in the embed tag to the URL where it’s hosted by the company i made it for (on their server).

this was fine, except that on completion of the game, there’s a getURL within the game which links to another page on the company’s site. i didn’t want to link away from my portfolio, but i couldn’t change the link because i didn’t have the .fla file.

so what i tried was this Macromedia-endorsed solution, in the body tag of the portfolio page containing the game:

onunload=“MM_goToURL(‘self’,’…/index.html’);return document.MM_returnValue”

with this code:

function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args*+".location=’"+args[i+1]+"’");
}

the idea being that if anyone clicked the link to the company’s website, the browser would be redirected to my portfolio index page when it unloaded. which worked perfectly, but the problem is that the hyperlink in the page, also to index.html, doesn’t work. strangely, the page remains http://www.swurl.org/projects/gt.html but the layout reverts to the index page, but not linked to the images or the stylesheet.

you can try this. click the ‘home’ button on the game page and you will see what i mean (you don’t have to complete the game, unless you think that will help!)

basically, what i’m trying to do i find a way to over-ride the link in the flash movie which takes people to the rest of the company’s website, and either send them back to my index page or keep them on the game page.

i hope this has been clear. as i said above, huge thanks in advance to anyone who knows of a workaround to this. it’ll be anoying if i can’t show the game on my portfolio.

cheers

andy.