beek
beek

Reputation: 3750

AS3 Security Sandbox Error when retrieving data from Facebook

I think this is a common problem, but can't find the answer.

I've got a Flash app that's trying to retrieve data, whenever it attempts to access the data from Facebook I get

* Security Sandbox Violation * SecurityDomain 'http://example.com/page.html' tried to access incompatible context 'http://cdn.example.com/flashfile.swf'

This error doesn't happen any other time, only from when I try and access data from Facebook.

Any clues?

Upvotes: 0

Views: 89

Answers (1)

Pikamander2
Pikamander2

Reputation: 8319

Have you tried using allowDomain?

import flash.system.Security;
...
Security.allowDomain("facebook.com");

Upvotes: 1

Related Questions