downview

October 31, 2006

getURL problem in Firefox

Filed under: Flash — Phil @ 11:57 am

This was a strange one…

I’ve been developing a few Flash games that have links at the end of the game, taking you off to various other locations on the site using both the getURL method and just by adding a URL to the text using the text link box within the text’s properties window.

Well, it appears that Firefox will not act upon the link unless it was a fully qualified one, including domain.

So, in testing we had a development site that had a full domain but the final site was to be built within a large CMS and used a couple of URL masks, so it had to be relative. This is where the problems began.

It took a few hours to actually work out what the error was and I found a *very* useful page by Paul Robertson that solved the issue. Thanks Paul