# Listener for System.security.loadPolicyFile?

**URL:** <https://forum.kirupa.com/t/listener-for-system-security-loadpolicyfile/270228>\
**Category:** flash\
**Created:** [September 7, 2008, 3:17am UTC](https://forum.kirupa.com/t/listener-for-system-security-loadpolicyfile/270228 "2008-09-07T03:17:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![svenski](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@svenski](https://forum.kirupa.com/u/svenski)\
**Post date:** [September 7, 2008, 3:17am UTC](https://forum.kirupa.com/t/listener-for-system-security-loadpolicyfile/270228/1 "2008-09-07T03:17:17Z")

</div>

I need to figure out a way to check if a crossdomain policy file has been loaded before initializing a certain component. The component won’t work correctly if the crossdomain policy hasn’t been loaded. Is there a way to do this? I can’t figure out a way to get this working. This is the script I’m using:

System.security.loadPolicyFile(“[http://www.remotewebsite.com/crossdomain.xml](http://www.remotewebsite.com/crossdomain.xml)”);
