# Loading swf into swf

**URL:** <https://forum.kirupa.com/t/loading-swf-into-swf/264465>\
**Category:** Uncategorized\
**Created:** [June 26, 2008, 11:57am UTC](https://forum.kirupa.com/t/loading-swf-into-swf/264465 "2008-06-26T11:57:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcolinhill](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@pcolinhill](https://forum.kirupa.com/u/pcolinhill)\
**Post date:** [June 26, 2008, 11:57am UTC](https://forum.kirupa.com/t/loading-swf-into-swf/264465/1 "2008-06-26T11:57:28Z")

</div>

ssssuusiusuisf;asohgsad’rihgasd’pihghiHello,

Let me preface this by saying my Flash skills are beginner at best. I’m trying to load an .swf into a .swf but modifying the tutorial on Kirupa that deals with loading external .swf’s (excellent by the way). I have no problem getting the file to load and play to the midframe, but for some reason, it won’t play the outro before loading the next .swf. Here’s the AS I’m using:

on (release) {  
if (\_root.illustration.currMovie == undefined) {  
\_root.illustration.currMovie = “catClips/illusClips/prt01”;  
container2.loadMovie(“catClips/illusClips/prt01.swf”);  
} else if (\_root.illustration.currMovie != “catClips/illusClips/prt01”) {  
if (container2.\_currentframe \>= container2.midframe) {  
\_root.illustration.currMovie = “catClips/illusClips/prt01”;  
container2.play();  
}  
}  
}

Any suggeation as to why this isn’t working? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![friezens](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@friezens](https://forum.kirupa.com/u/friezens)\
**Post date:** [June 26, 2008, 12:04pm UTC](https://forum.kirupa.com/t/loading-swf-into-swf/264465/2 "2008-06-26T12:04:51Z")

</div>

try placing all swf you load into the root directory

---

<div class="post-metadata">

**Author:** ![pcolinhill](https://avatars.discourse-cdn.com/v4/letter/p/90db22/32.png) [@pcolinhill](https://forum.kirupa.com/u/pcolinhill)\
**Post date:** [June 26, 2008, 3:07pm UTC](https://forum.kirupa.com/t/loading-swf-into-swf/264465/3 "2008-06-26T15:07:17Z")

</div>

I’ll give it a try to see if that will make them work. The problem is I am building a portfolio of my illustration, design, and photography work and don’t want to have 60 different swf’s in my root folder. The idea was to keep them a little more organized than that. Like I said before, there is no problem accessing the files, just getting them to play out the rest of the animation before loading the next one.
