# How to load swf file from another folder

**URL:** <https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/56727>\
**Category:** Uncategorized\
**Created:** [July 7, 2004, 6:18am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/56727 "2004-07-07T06:18:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![new\_bird](https://avatars.discourse-cdn.com/v4/letter/n/6bbea6/32.png) [@new\_bird](https://forum.kirupa.com/u/new_bird)\
**Post date:** [July 7, 2004, 6:18am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/56727/1 "2004-07-07T06:18:17Z")

</div>

if the fla.file and the sun.swf is in different folder

the fla.file is in C:\Documents and Settings\student  
the sun.swf is in C:\Documents and Settings\student\example

what should i type on the parameter.  
i dun understand the [file:///](file:///)

this my script

* * *

on (release) {  
this.fung\_mc.loadMovie(“sun.swf”);  
}

* * *

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 7, 2004, 12:53pm UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/56727/2 "2004-07-07T12:53:04Z")

</div>

Simply tell it the folder’s name:

```auto

on (release) {
this.fung_mc.loadMovie("example/sun.swf");
}

```

It’s all relative.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2004, 3:51am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/56727/3 "2004-07-22T03:51:35Z")

</div>

if the swf file is in one folder on top of the fla.file  
fla.file in C:\Documents and Settings\student\example  
swf.file in C:\Documents and Settings\student

if i put on (release) {  
this.fung\_mc.loadMovie(“student\sun.swf”);  
}

there error said cant find in C:\Documents and Settings\student\example\*\*student\*\*

wat the parameter to load?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 22, 2004, 4:42am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/56727/4 "2004-07-22T04:42:55Z")

</div>

first, you don’t use a .Fla file on runtime. If you have an .swf and it loads a second .swf, put them in the same folder. I think the \_root .swf needs to be above a called \_child .swf.
