# Sandbox Violation?

**URL:** <https://forum.kirupa.com/t/sandbox-violation/322601>\
**Category:** flash\
**Created:** [May 26, 2011, 5:49pm UTC](https://forum.kirupa.com/t/sandbox-violation/322601 "2011-05-26T17:49:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BUroKHUli](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/burokhuli/32/190_2.png) [@BUroKHUli](https://forum.kirupa.com/u/BUroKHUli)\
**Post date:** [May 26, 2011, 5:49pm UTC](https://forum.kirupa.com/t/sandbox-violation/322601/1 "2011-05-26T17:49:55Z")

</div>

Hi guys,

I have a script implemented that I found in this website. I just copied paste it to my frame, it worked perfectly.

I’m referring to this script

```php

filename = ["vibration.swf", "circular.swf", "random_movement.swf"];
path = "http://www.kirupa.com/developer/actionscript/animation/";
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(path+filename[k], movieTarget);

```

now when I tried to replace all the variables like the FILENAMES and the PATH, below:

```php

filename = ["random01.swf", "random02.swf", "random03.swf", "random04.swf", "random05.swf", "random06.swf", "random07.swf", "random08.swf", "random09.swf", "random10.swf"];
path = "http://www.allanrestaurophotography.com/swf/";
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(path+filename[k], movieTarget);

```

it’s giving me this error that I have no idea how to solve:

\*\*\* Security Sandbox Violation \*\*\*  
SecurityDomain ‘[http://www.allanrestaurophotography.com/swf/random08.swf](http://www.allanrestaurophotography.com/swf/random08.swf)’ tried to access incompatible context ‘file:///RnDezVous/Library/WebServer/Documents/dejavu/swf/interface.swf’

any idea why is this happening?
