# How to load swf file from another folder

**URL:** <https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/115275>\
**Category:** Uncategorized\
**Created:** [July 7, 2004, 6:20am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/115275 "2004-07-07T06:20:35Z")\
**Posts on this page:** 9\
**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:20am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/115275/1 "2004-07-07T06:20:35Z")

</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, 8:11am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/115275/2 "2004-07-07T08:11:30Z")

</div>

have you tried using :  
on (release) {  
this.fung\_mc.loadMovie(“example\sun.swf”);  
}  
Never tried this myself , but seems logical.

---

<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, 8:13am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/115275/3 "2004-07-07T08:13:20Z")

</div>

yeah that will work

---

<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, 2:36am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/115275/4 "2004-07-22T02:36:49Z")

</div>

i try but give error on cant find the file

is it bcos i using professional version  
on (release) {  
this.fung\_mc.loadMovie(“example\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 22, 2004, 2:40am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/115275/5 "2004-07-22T02:40:35Z")

</div>

Just a thought, but I always use a ‘/’ instead of a ‘’. I’m not sure if it makes a difference or not, you might want to try.

---

<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:48am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/115275/6 "2004-07-22T03:48:10Z")

</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\*\*[U]student[/U]\*\*

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, 5:04am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/115275/7 "2004-07-22T05:04:49Z")

</div>

try this.

on (release) {  
this.fung\_mc.loadMovie("…/sun.swf");  
}

I think …/ will take you back a folder.

---

<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, 5:15am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/115275/8 "2004-07-22T05:15:09Z")

</div>

heh heh thank Darren19  
it work  
i use

on (release) {  
this.fung\_mc.loadMovie("…/student/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 22, 2004, 5:21am UTC](https://forum.kirupa.com/t/how-to-load-swf-file-from-another-folder/115275/9 "2004-07-22T05:21:02Z")

</div>

ya it make a different in “/” and ""  
using your method “/” it can work  
if i use the “” the [color=red]first letter[/color] in the folder will be ombited  
like example  
u load to student/sence/basic  
if use ""  
u get error report saying u load to  
student[color=red]ence\asic[/color]
