PDA

View Full Version : Error: uncaught exception: Permission denied to call method Location.toString


MegaManSE
05-06-2008, 01:44 AM
I'm getting this strange error occasionally when people attemp to play my flash game in the Firefox error console:
Error: uncaught exception: Permission denied to call method Location.toString

The weird thing is that it happens on Kongregate and MySpace but not on my website or Facebook. Is this a problem with the Flash plugin or some weird crossdomain issue? My game does use networking but I specify a crossdomain.xml on my site. Not sure what's going on here.

Non working (occasionally and only for specific people) version of the game can be found at: http://www.kongregate.com/games/MegaManSE/torture-me
The working version of the game can be found at: http://willperone.net/Projects/Game2/game2.php

My game was actually rejected from MySpace because of this issue... this sucks!

dr_zeus
05-06-2008, 10:40 PM
Does it try to communicate with JavaScript? I know that MySpace specifically prohibits such behavior.

MegaManSE
05-07-2008, 01:30 AM
I finally figured it out; it was from the Flash security policy update last month. As it turns out, only some people were getting this error because they had the newest version of Flash 9 installed. Jeez, looks like I'm always the last one to know about these things :mad:
The problem had to do with this new allowed headers thing you have to add to the crossdomain.xml file. I've written up an article on my site how to correct it though as I saw I wasn't the only person getting this problem:
http://willperone.net/Code/as3error.php