Kevin Burke
2010-09-28 21:07:25 UTC
Hi,
I have a Papervision plane that uses a user's Facebook profile picture as a
MovieClip in a MovieMaterial.
When I test this .swf from my local machine, it works, but when I upload it
to my web host, I get an error.
SITE:
http://www.kevinburkeportfolio.com/Facebook/facebook_test.html
ERROR MESSAGE:
SecurityError: Error #2122: Security sandbox violation: BitmapData.draw:
http://www.kevinburkeportfolio.com/Facebook/facebook_test.swf/[[DYNAMIC]]/3
cannot access
Loading Image...
.
A policy file is required, but the checkPolicyFile flag was not set when
this media was loaded.
at flash.display::BitmapData/draw()
at Main/checkLoad()
I have read about this sandbox/checkPolicyFile problem in many posts, so I
included this crossdomain file in the root folder of my server.
http://www.kevinburkeportfolio.com/crossdomain.xml
AND here:
http://www.kevinburkeportfolio.com/Facebook/crossdomain.xml
I also added the following code to my Facebook MovieClip's AS class'
constructor function:
Security.allowDomain("*");
Security.loadPolicyFile("http://www.kevinburkeportfolio.com/crossdomain.xml");
loaderContext = new LoaderContext(true);
loaderContext.checkPolicyFile = true;
And this code after the MovieClip connects to the Facebook user's profile:
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, init);
loader.load(url,loaderContext);
I also added this code to my document class's properties:
public var checkPolicyFile:Boolean;
AND this to the constructor:
checkPolicyFile = true;
Security.loadPolicyFile("http://www.kevinburkeportfolio.com/crossdomain.xml");
The plane is NOT built until the image is done loading and I even drew in a
white box to the MovieClip so there would be something in it before the
plane requested its instance.
I'm out of ideas. Can anyone please
help???!?!?!?!?!?!?!!?!??!?!?!?!?!?!?!?!?!?
I have a Papervision plane that uses a user's Facebook profile picture as a
MovieClip in a MovieMaterial.
When I test this .swf from my local machine, it works, but when I upload it
to my web host, I get an error.
SITE:
http://www.kevinburkeportfolio.com/Facebook/facebook_test.html
ERROR MESSAGE:
SecurityError: Error #2122: Security sandbox violation: BitmapData.draw:
http://www.kevinburkeportfolio.com/Facebook/facebook_test.swf/[[DYNAMIC]]/3
cannot access
Loading Image...
A policy file is required, but the checkPolicyFile flag was not set when
this media was loaded.
at flash.display::BitmapData/draw()
at Main/checkLoad()
I have read about this sandbox/checkPolicyFile problem in many posts, so I
included this crossdomain file in the root folder of my server.
http://www.kevinburkeportfolio.com/crossdomain.xml
AND here:
http://www.kevinburkeportfolio.com/Facebook/crossdomain.xml
I also added the following code to my Facebook MovieClip's AS class'
constructor function:
Security.allowDomain("*");
Security.loadPolicyFile("http://www.kevinburkeportfolio.com/crossdomain.xml");
loaderContext = new LoaderContext(true);
loaderContext.checkPolicyFile = true;
And this code after the MovieClip connects to the Facebook user's profile:
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, init);
loader.load(url,loaderContext);
I also added this code to my document class's properties:
public var checkPolicyFile:Boolean;
AND this to the constructor:
checkPolicyFile = true;
Security.loadPolicyFile("http://www.kevinburkeportfolio.com/crossdomain.xml");
The plane is NOT built until the image is done loading and I even drew in a
white box to the MovieClip so there would be something in it before the
plane requested its instance.
I'm out of ideas. Can anyone please
help???!?!?!?!?!?!?!!?!??!?!?!?!?!?!?!?!?!?
--
View this message in context: http://papervision3d.758870.n4.nabble.com/The-unbeatable-Security-sandbox-dilemma-Policy-file-not-working-tp2717943p2717943.html
Sent from the Papervision3D mailing list archive at Nabble.com.
View this message in context: http://papervision3d.758870.n4.nabble.com/The-unbeatable-Security-sandbox-dilemma-Policy-file-not-working-tp2717943p2717943.html
Sent from the Papervision3D mailing list archive at Nabble.com.