I do not seem to have this problem. Can you post more code so I can get a better look at what you are doing. I use facebook images all the time with out problem.
The only time I have had issues with policy files is when the image url is actually a redirect. Flash checks the policy file before loading the image and does not resolve the redirect until after the image has loaded. Thus it does not realize that it check the wrong domains policy file. You can detect this and then manually load the policy file of the image once it is loaded by checking the actual url. On Fri, Dec 2, 2011 at 1:39 PM, dorkie dork from dorktown < [email protected]> wrote: > ** > > > To sort of answer my own question I've read that you can check > parentAllowsChild and childAllowsParent on the loader of the Image. > > On Tue, Nov 29, 2011 at 11:33 AM, dorkie dork from dorktown < > [email protected]> wrote: > >> I have an image I am pulling in from Facebook. It is running ok but now >> that we rotated the image it looks horribly pixelated with a lot of >> aliasing. I tried to set bitmap smoothing to true and it resulted in the >> famous error: >> >> SecurityError: Error #2122: Security sandbox violation: Loader.content: >> http:// cannot access .jpg. A policy file is required, but the >> checkPolicyFile flag was not set when this media was loaded. >> >> I found online that Facebook has a policy file and I applied it >> successfully using: >> >> protected function initializeHandler(event:FlexEvent):void >> { >> // allows bitmap smoothing (which we need here) >> Security.loadPolicyFile(" >> http://profile.ak.fbcdn.net/crossdomain.xml"); >> var context:LoaderContext = new LoaderContext(); >> context.checkPolicyFile = true; >> context.applicationDomain = >> ApplicationDomain.currentDomain; >> } >> >> This is called before the Image source is set. In fact it is in the >> initialize event of the Image container component. >> >> But I am wary to upload it to a site where I do not know if it will break >> because it is will be in a different security sandbox again. >> >> My question is, is there a way to tell if I can set bitmap smoothing to >> true on my images (bc if it is not allowed it will cause fatal errors and >> the whole application will explode). In other words, is it possible to tell >> if I'm in the correct security sandbox (security policy loaded and was >> successful) so I know smoothing is allowed. Does that make sense? >> >> >> > >

