# Runtime Shared Library with relative path

**URL:** <https://forum.kirupa.com/t/runtime-shared-library-with-relative-path/299194>\
**Category:** flash\
**Created:** [October 31, 2009, 1:41pm UTC](https://forum.kirupa.com/t/runtime-shared-library-with-relative-path/299194 "2009-10-31T13:41:23Z")\
**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:** [October 31, 2009, 1:41pm UTC](https://forum.kirupa.com/t/runtime-shared-library-with-relative-path/299194/1 "2009-10-31T13:41:23Z")

</div>

**hi guys!**

i have a **loader.swf** and it loads a **lib.swf** then the **main.swf** ( and then about 10 swf-s ) . \*\*_( Flash CS4 - AS3 )_  
\*\*  
[CENTER][COLOR=DarkRed]the loader.swf is in the root and the others in the components dir[/COLOR]  
[/CENTER]

i use **RSL** to save bandwith and i like RSL but when i use **Relative path** the loader.swf throws me…

```auto
***Security Sandbox Violation***
Connection to lib.swf halted - not permitted from http://www.domain.com/client/a/b/main.swf
-- Remote SWFs may not access local files.

```

i inserted…

```auto
Security.allowDomain('*')

```

into every swf files and **same error…**

[CENTER] in the\*\* Sharing URL:\*\* [COLOR=DarkRed]lib.swf[/COLOR]  
[/CENTER]

**BUT** when i use **Absolute path** this error doesn’t thrown and everything is fine.

is it possible to use **Relative path** in my case because i really like to use Relative path because the future site changes…

thanks for replies.
