# AS3 - RSL throws security error

**URL:** <https://forum.kirupa.com/t/as3-rsl-throws-security-error/294311>\
**Category:** flash\
**Created:** [August 12, 2009, 9:47am UTC](https://forum.kirupa.com/t/as3-rsl-throws-security-error/294311 "2009-08-12T09:47:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rCANE](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@rCANE](https://forum.kirupa.com/u/rCANE)\
**Post date:** [August 12, 2009, 9:47am UTC](https://forum.kirupa.com/t/as3-rsl-throws-security-error/294311/1 "2009-08-12T09:47:04Z")

</div>

hi all!

i have a main loader swf file called loader.swf and it loads an RSL.swf (runtime shared library for my swf files) and then 10 swf files, each one to a container (fE.: movieclip ‘01’ in loader.swf, then movieclip ‘02’ and so on). the 10 swf files have a lot of references to RSL.swf, and i have to use RSL.

the problem is when loader.swf loads the RSL and the other 10 swfs the loader throws errors like this:

```auto

***Security Sandbox Violation***
Connection to rsl.swf halted - not permitted from http://localhost/comp/01.swf
-- Remote SWFs may not access local files.
ReferenceError: Error #1065: Variable frame is not defined.

```

and so on…

then i put in EVERY swf files (loader,RSL and the other 10) the code Security.allowDomain("\*") but throws the same errors…

what should i do to solve this?

thanks for any replies
