[FLEX] BitmapData.draw()

Hello,

I’m building a flickr application in flex at the moment but i keep getting sandbox errors when i invoke BitmapData.draw();.

After doing some google research i found that the proper policyfile needs to be loaded.

i do this using:

      Security.loadPolicyFile("http://api.flickr.com/crossdomain.xml");

Now this still doesn’t resolve the issues. Upon further research i found that i need to check the policy file first using checkPolicyFile = true;

But since i don’t use loaders in flex and just set the source property to an URL, how would i go about implementing the checkPolicyFile ?