# Loading a slideshow into a movie clip

**URL:** https://forum.kirupa.com/t/loading-a-slideshow-into-a-movie-clip/118966
**Category:** Uncategorized
**Created:** [August 10, 2004, 3:25pm UTC](https://forum.kirupa.com/t/loading-a-slideshow-into-a-movie-clip/118966 "2004-08-10T15:25:14Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![holePUNCHED](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@holePUNCHED](https://forum.kirupa.com/u/holePUNCHED)
#### Post date: [August 10, 2004, 3:25pm UTC](https://forum.kirupa.com/t/loading-a-slideshow-into-a-movie-clip/118966/1 "2004-08-10T15:25:14Z")

</div>

Hello all,

Just wondering if anyone could explain this to me…I have a slideshow that works fine when I preview it by itself, but when I load it into a movie clip in another document, it doesn’t show pics, only the fading transitions. I’ve posted the .fla(s) here: [http://www.holepunchstudios.com/help.zip](http://www.holepunchstudios.com/help.zip) Any help would be appreciated.

---

<div class="post-metadata">

### Author: ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)
#### Post date: [August 11, 2004, 6:54am UTC](https://forum.kirupa.com/t/loading-a-slideshow-into-a-movie-clip/118966/2 "2004-08-11T06:54:09Z")

</div>

Do you refer to \_root in your slideshow.swf?  
[size=1]No flash at the moment, so didn’t dl your zip[/size]

scotty(-:

---

<div class="post-metadata">

### Author: ![holePUNCHED](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@holePUNCHED](https://forum.kirupa.com/u/holePUNCHED)
#### Post date: [August 11, 2004, 12:23pm UTC](https://forum.kirupa.com/t/loading-a-slideshow-into-a-movie-clip/118966/3 "2004-08-11T12:23:33Z")

</div>

Ya. I saw that you’ve answered this question a couple times. Could you explain what the diff. \_root, \_parent, \_level0, etc. mean? What I finally did was create a \_global.loadedClip = this; in my loaded clip. It fixed a lot of stuff. What I’m doing is, loading a clip into a clip that’s being loaded into a clip…now that I’ve been totally confusing, is that something that is normally done by “good” flashers? I want to go by common programming practices, but don’t really know what the “norm” is. Finally what I had to do to get some buttons to work was to double up on my \_root. I have NO idea why that worked, but I read it in a thread on the forums.

If you know what all those target things mean, love to hear it…otherwise, I’d appreciate it if you could point me in that direction. Thanks man.

---

<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: [August 11, 2004, 12:44pm UTC](https://forum.kirupa.com/t/loading-a-slideshow-into-a-movie-clip/118966/4 "2004-08-11T12:44:11Z")

</div>

Yeah i have the same problem with pathing issues and would love to solve this problem. If I find out a solution I will post it here holepunched.

---

<div class="post-metadata">

### Author: ![newhopekenny](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/newhopekenny/32/317_2.png) [@newhopekenny](https://forum.kirupa.com/u/newhopekenny)
#### Post date: [August 11, 2004, 3:48pm UTC](https://forum.kirupa.com/t/loading-a-slideshow-into-a-movie-clip/118966/5 "2004-08-11T15:48:04Z")

</div>

It’s all about pathing to your object.

Think of it like this:

You’ve got a webpage that has the code:  
\<img src=“images/bar.gif” /\>

If you try to paste that same code in a page with a different domain/directory structure, it’s not going to be able to find it and thus will report a broken image (white box, red x).

Flash needs to know where stuff is sometimes. If you use \_root in a SWF, and then load that SWF into another SWF, you’re telling Flash to look at the very \_root of the main, container SWF, not your loaded SWF.

Usually you can just replace \_root with \_parent. But you can also use “this” or level[insert number].

Check the help file for more in-depth information. 😉

---

<div class="post-metadata">

### Author: ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)
#### Post date: [August 12, 2004, 5:42am UTC](https://forum.kirupa.com/t/loading-a-slideshow-into-a-movie-clip/118966/6 "2004-08-12T05:42:03Z")

</div>

And maybe this will help  
[http://www.kirupa.com/developer/actionscript/tricks/root\_parent\_this.htm](http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.htm)

scotty(-:

---

<div class="post-metadata">

### Author: ![holePUNCHED](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@holePUNCHED](https://forum.kirupa.com/u/holePUNCHED)
#### Post date: [August 12, 2004, 12:12pm UTC](https://forum.kirupa.com/t/loading-a-slideshow-into-a-movie-clip/118966/7 "2004-08-12T12:12:59Z")

</div>

That’s great. Basically, I guess, since I’m using 04, I can use global variables. Is that a good way to do that? What about the time I had to double up my \_root? Can you explain a better way to do that (if that’s not a good way).

---

<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: [August 12, 2004, 1:59pm UTC](https://forum.kirupa.com/t/loading-a-slideshow-into-a-movie-clip/118966/8 "2004-08-12T13:59:06Z")

</div>

hi Holepunch, did you manage to get your fla working. I still can’t grasp the concept of \_root \_parent This. I thought I got it but I can’t seem to get your fla to work.

---

<div class="post-metadata">

### Author: ![holePUNCHED](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@holePUNCHED](https://forum.kirupa.com/u/holePUNCHED)
#### Post date: [August 12, 2004, 2:11pm UTC](https://forum.kirupa.com/t/loading-a-slideshow-into-a-movie-clip/118966/9 "2004-08-12T14:11:15Z")

</div>

yeah Gupps, I got it working…I had to create a \_global variable. I found it on these forums.

---

<div class="post-metadata">

### Author: ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)
#### Post date: [August 12, 2004, 3:14pm UTC](https://forum.kirupa.com/t/loading-a-slideshow-into-a-movie-clip/118966/10 "2004-08-12T15:14:03Z")

</div>

In your looping fla you refer twice to \_root (line18/36). As standalone that’s no problem, cause \_root refers to the main timeline.  
Your movieclip photo is in that main timeline and because that timeline executes the prototypes (in this case) you can skip that “\_root” or replace it by “this” (“this” in a prototype refers to the movieclip that calls it, yep, in this case “\_root” or better said the maintimeline.  
So far so good. If you load looping.swf in another movie, \_root refers to maintimeline, which then is index.swf’s \_root. There’s no mc “photo” here and thus it’s not working.  
If you have skipped the \_root, it’s working and if you’ve used “this” too, cause “this” refers to the timeline that called the prototype, which in this case is the mc timeline you’ve load looping.swf in…  
Makes sense?[size=1] it’s starting to confuse me, LOL[/size]

scotty(-:
