# \[FLEX\] BitmapData.draw()

**URL:** <https://forum.kirupa.com/t/flex-bitmapdata-draw/255619>\
**Category:** flash\
**Created:** [March 25, 2008, 12:35pm UTC](https://forum.kirupa.com/t/flex-bitmapdata-draw/255619 "2008-03-25T12:35:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raziel](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@Raziel](https://forum.kirupa.com/u/Raziel)\
**Post date:** [March 25, 2008, 12:35pm UTC](https://forum.kirupa.com/t/flex-bitmapdata-draw/255619/1 "2008-03-25T12:35:36Z")

</div>

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:

```auto
      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 ?
