# Loading random movie

**URL:** <https://forum.kirupa.com/t/loading-random-movie/105721>\
**Category:** Uncategorized\
**Created:** [March 29, 2004, 9:37am UTC](https://forum.kirupa.com/t/loading-random-movie/105721 "2004-03-29T09:37:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anok\_aye](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@anok\_aye](https://forum.kirupa.com/u/anok_aye)\
**Post date:** [March 29, 2004, 9:37am UTC](https://forum.kirupa.com/t/loading-random-movie/105721/1 "2004-03-29T09:37:39Z")

</div>

Hi all,

i’m trying to create a loading random movie in my flash website where the flash movie will rendomly loaded. I had gone through the tutorial - Loading Random Movies and i had a small problem relate to the actionscript.

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

My question is, if i develope the page at my local PC. So, how my path should be? as i try subtitute it with the local root

path = “C:\_MyTemp\JEO\_Test\randomBG.html”;

but it still didn’t work. There is nothing appear when i publish it to the browser.

besides that, an error massage appear when i export it to swf.  
( Error opening URL “C:\MyTemp\EO\_Test\randomBG.htmlmyMovie.swf”

Thanks in advance.

:pleased:
