Originally Posted by Rwolffgang.
Hi Guys,
When developing a game it runs in an IFRAME (Facebook canvas) I encountered this error message in the JavaScript console :
Permission denied to access property ‘toString‘
I ' m using the Flash plugin and it turned out to being a security mechanism of Flash, which disallows to pulling content from Ano ther domain. Although the Flash plugin and MP3s is hosted on the same domain, the iframe let ' s Flash consider it as a cross-domain acc Ess. The domain, from which the content should is downloaded, needs to allow the access.
To solve this issue I had to place a crossdomain.xml file in the root of our domain.
<cross-domain-policy> <site-control permitted-cross-domain-policies="all"/> <allow-access-from domain="*" /> <allow-http-request-headers-from domain="*" headers="*"/></cross-domain-policy>
I know this was not a error report, but I ' m certain someone else would hit the same problem, hence I want this knowledge to be shared.
Cheers,
Robert
Sources:
http://willperone.net/Code/as3error.php
Https://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html
From:http://community.createjs.com/discussions/soundjs/136-fix-for-permission-denied-to-access-property-tostring
Fix For:permission denied to access property ' ToString '