# loadMovie absolute url path

**URL:** https://forum.kirupa.com/t/loadmovie-absolute-url-path/306945
**Category:** Uncategorized
**Created:** [March 25, 2010, 12:40am UTC](https://forum.kirupa.com/t/loadmovie-absolute-url-path/306945 "2010-03-25T00:40:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![baroim](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@baroim](https://forum.kirupa.com/u/baroim)
#### Post date: [March 25, 2010, 12:40am UTC](https://forum.kirupa.com/t/loadmovie-absolute-url-path/306945/1 "2010-03-25T00:40:19Z")

</div>

Hi guys,  
My first post and question ever. I have one main swf called index.swf that links to other 5 swf. The name of the external file are 1.swf, 2.swf up until 5. (This is a template pack so I don’t really know whats going on, anyway……)

So the actual coder apparently using var n = 1  
if (IndexLoaded \>= total) {  
var n = 1;  
gotoAndPlay(3);

and then do the following (3rd line):

var movie:MovieClip = \_root.StoredActions.Movies.CMovie.duplicateMovieClip(“CMovie” + n,n);  
loadMovie(n+".swf", \_root.StoredActions.Movies[“CMovie”+n]);  
var MovieLoaded = 0;  
percent = 0;  
\_root.StoredActions.Movies[“CMovie”+n].\_x = 3000;  
\_root.StoredActions.Movies[“CMovie”+n].\_y = 87;

to call the 1.swf, 2.swf etc.

I need to specify the exact location of the external swf (i.e: [http://www.mydomain.com/swf/](http://www.mydomain.com/swf/)), rather than doing it as above.

How do i add that exact URL on that line? i tried the following and ended with error:

loadMovie([http://www.mydomain.com/swf/n+".swf"](http://www.mydomain.com/swf/n+%22.swf%22), \_root.StoredActions.Movies[“CMovie”+n]);

Any help would be appreciated,. 🙂
