# checkPolicyFile = true;

**URL:** <https://forum.kirupa.com/t/checkpolicyfile-true/279378>\
**Category:** flash\
**Created:** [January 14, 2009, 3:44am UTC](https://forum.kirupa.com/t/checkpolicyfile-true/279378 "2009-01-14T03:44:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenBart](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@BenBart](https://forum.kirupa.com/u/BenBart)\
**Post date:** [January 14, 2009, 3:44am UTC](https://forum.kirupa.com/t/checkpolicyfile-true/279378/1 "2009-01-14T03:44:30Z")

</div>

```auto
    var context:LoaderContext = new LoaderContext();
    context.checkPolicyFile = true;
    
    var loader:Loader = new Loader();
    //Security.checkPolicyFile = true;
    var img_url:String = img_src;
    var request_url:URLRequest = new URLRequest(img_url);

    loader.load(request_url);

```

For some reason the loader isn’t checking the policy file, how do you called “checkPolicyFile = true” correctly?
