# Load Module from a website

**URL:** <https://forum.kirupa.com/t/load-module-from-a-website/286299>\
**Category:** flash\
**Created:** [April 13, 2009, 2:20pm UTC](https://forum.kirupa.com/t/load-module-from-a-website/286299 "2009-04-13T14:20:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grozavpaul](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@grozavpaul](https://forum.kirupa.com/u/grozavpaul)\
**Post date:** [April 13, 2009, 2:20pm UTC](https://forum.kirupa.com/t/load-module-from-a-website/286299/1 "2009-04-13T14:20:22Z")

</div>

Does anyone know how to load a module from a website? I am trying to create a AIR application that loads a module from my website. I found this on google [http://livedocs.adobe.com/flex/3/html/help.html?content=modular\_5.html](http://livedocs.adobe.com/flex/3/html/help.html?content=modular_5.html) and i still couldn’t do it. As far as i understood i have to create a **crossdomain.xml** that “resides at the root directory of the server that is serving the data” :eyeup:. This is my website: [http://1.pe-web.ro](http://1.pe-web.ro) that is actually a sub-domain. And here i have a folder in which i have that module that i am supposed to load in my AIR app. Where should i put that crossdomain.xml? in that folder? or at the root of _[http://1.pe-web.ro](http://1.pe-web.ro)_ or at the root of _[http://pe-web.ro/](http://pe-web.ro/)_ ??. Then, how do i give access to my AIR app to load the module from my website? if i use

```auto
Security.allowDomain(SERVER_ADDRESS);

```

i get this error **SecurityError: Error #3207: Application-sandbox content cannot access this feature.  
at flash.system::Security$/allowDomain()**

I could use an example … the code for the AIR app, the module, and where to put that crossdomain.xml file (and what to contain).  
Maybe i’m asking for too much … i’ll keep searching but i could really use some help. I mean … this is a cool thing.

[RIGHT]Thank you !  
[/RIGHT]
