# External swf calling another external swf

**URL:** <https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775>\
**Category:** Uncategorized\
**Created:** [July 30, 2004, 6:21am UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775 "2004-07-30T06:21:30Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwing](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kwing](https://forum.kirupa.com/u/kwing)\
**Post date:** [July 30, 2004, 6:21am UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775/1 "2004-07-30T06:21:30Z")

</div>

i have a question,  
is it possible for an external swf loaded in the main movie calls another external swf? Thanks a lot! guys! 🙂

---

<div class="post-metadata">

**Author:** ![Inflicted](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@Inflicted](https://forum.kirupa.com/u/Inflicted)\
**Post date:** [July 30, 2004, 11:32am UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775/2 "2004-07-30T11:32:29Z")

</div>

offcourse it is!

---

<div class="post-metadata">

**Author:** ![ShinFu](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@ShinFu](https://forum.kirupa.com/u/ShinFu)\
**Post date:** [July 30, 2004, 12:30pm UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775/3 "2004-07-30T12:30:33Z")

</div>

regarding this i have a problem… it doesnt work. if its possible, i am  
doing something wrong… plz help :jail:

[forum posting](http://www.kirupaforum.com/forums/showthread.php?t=64576)

---

<div class="post-metadata">

**Author:** ![Inflicted](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@Inflicted](https://forum.kirupa.com/u/Inflicted)\
**Post date:** [July 30, 2004, 12:40pm UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775/4 "2004-07-30T12:40:17Z")

</div>

Have you tried “\_parent”?  
Otherwise post the fla.

---

<div class="post-metadata">

**Author:** ![amanuo](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@amanuo](https://forum.kirupa.com/u/amanuo)\
**Post date:** [July 30, 2004, 12:53pm UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775/5 "2004-07-30T12:53:29Z")

</div>

All you need to do is make sure you got the linkage right.  
When you load an external swf into an mc (instance name: target) then the path of that loaded swf is **\_root.target**.  
So when the target2 is in the root, the link from the external swf should be **\_root.target2** , not **target2** or someting.

---

<div class="post-metadata">

**Author:** ![ShinFu](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@ShinFu](https://forum.kirupa.com/u/ShinFu)\
**Post date:** [July 30, 2004, 3:50pm UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775/6 "2004-07-30T15:50:02Z")

</div>

here comes the fla…  
you have to render the maincontent.fla first.  
i left the main.swf like it was in the beginning so it only  
works as standalone,not when loaded with the loader.swf

something is missing and a animation is stuck in a loop  
but it has nothing to do with the loading func :whistle:

---

<div class="post-metadata">

**Author:** ![Inflicted](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@Inflicted](https://forum.kirupa.com/u/Inflicted)\
**Post date:** [July 30, 2004, 5:16pm UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775/7 "2004-07-30T17:16:37Z")

</div>

What exactly is not working?

---

<div class="post-metadata">

**Author:** ![ShinFu](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@ShinFu](https://forum.kirupa.com/u/ShinFu)\
**Post date:** [July 30, 2004, 5:50pm UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775/8 "2004-07-30T17:50:47Z")

</div>

> [@Inflicted](#):
>
> What exactly is not working?

my bigger last posting should describe it… i hope it does :puzzled:

[http://www.kirupaforum.com/forums/showthread.php?t=64576](http://www.kirupaforum.com/forums/showthread.php?t=64576)

---

<div class="post-metadata">

**Author:** ![Inflicted](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@Inflicted](https://forum.kirupa.com/u/Inflicted)\
**Post date:** [July 30, 2004, 7:16pm UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775/9 "2004-07-30T19:16:56Z")

</div>

No, it’s very confusing. They only thing I noticed is you load  
several swf’s in the same container.

---

<div class="post-metadata">

**Author:** ![stringy](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stringy](https://forum.kirupa.com/u/stringy)\
**Post date:** [July 30, 2004, 7:26pm UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775/10 "2004-07-30T19:26:57Z")

</div>

> [@Inflicted](#):
>
> No, it’s very confusing. They only thing I noticed is you load  
> several swf’s in the same container.

I think you need to remove all references to \_root  
ie/in the first frame \_root.space can be just space  
2nd frame change(0) and the same for the buttons.  
Not tested it but i think it will be a little nearer.

---

<div class="post-metadata">

**Author:** ![Gupps](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@Gupps](https://forum.kirupa.com/u/Gupps)\
**Post date:** [July 30, 2004, 7:39pm UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775/11 "2004-07-30T19:39:16Z")

</div>

yeah i can’t see anything wrong with your fla shinfu. did younot create a sub folder called subpages and put maincontent.swf in that.  
let me look at your other post first

---

<div class="post-metadata">

**Author:** ![ShinFu](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@ShinFu](https://forum.kirupa.com/u/ShinFu)\
**Post date:** [August 2, 2004, 8:42am UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775/12 "2004-08-02T08:42:57Z")

</div>

thanks stringy. the path was the problem.

i removed all references to \_root and replaced it with  
\_parent oder \_parent.\_parent where it was necessary  
and it works now. 🙂

---

<div class="post-metadata">

**Author:** ![stringy](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stringy](https://forum.kirupa.com/u/stringy)\
**Post date:** [August 2, 2004, 1:48pm UTC](https://forum.kirupa.com/t/external-swf-calling-another-external-swf/117775/13 "2004-08-02T13:48:05Z")

</div>

> [@ShinFu](#):
>
> thanks stringy. the path was the problem.
> 
> i removed all references to \_root and replaced it with  
> \_parent oder \_parent.\_parent where it was necessary  
> and it works now. 🙂

You are welcome.
