# \_root and the like

**URL:** <https://forum.kirupa.com/t/-root-and-the-like/29510>\
**Category:** flash\
**Created:** [August 27, 2003, 5:26pm UTC](https://forum.kirupa.com/t/-root-and-the-like/29510 "2003-08-27T17:26:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avi](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Avi](https://forum.kirupa.com/u/Avi)\
**Post date:** [August 27, 2003, 5:26pm UTC](https://forum.kirupa.com/t/-root-and-the-like/29510/1 "2003-08-27T17:26:42Z")

</div>

OK guys, im gona try and explain this as well as i can

I have 4 movies files, named jacket.swf, jacket1.swf, jacket2.swf, jacket3.swf.  
jacket.swf is embedded in an aspx page and gives the user the choice of chosing one of the other files.

Now if starting with jacket.swf I can use \_root and have functions work without a problem. But if i use \_root in say jacket2.swf it wont work.

My Question is how can i referacne function in jacket2.swf??

Please help.

---

<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:** [August 27, 2003, 6:15pm UTC](https://forum.kirupa.com/t/-root-and-the-like/29510/2 "2003-08-27T18:15:53Z")

</div>

\_root.jacket2. should do it. can you explain your setup a bit more, like do you use loadmovie or what and what are the instance names?

---

<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:** [August 27, 2003, 8:13pm UTC](https://forum.kirupa.com/t/-root-and-the-like/29510/3 "2003-08-27T20:13:17Z")

</div>

i use the following code

on(release){

```
loadMovie("jacket2.swf",0);

```

}

so if i wanted to use the getbytesloaded function  
would i use

\_root.jacket2.swf.getbytesloaded???

---

<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:** [August 27, 2003, 8:25pm UTC](https://forum.kirupa.com/t/-root-and-the-like/29510/4 "2003-08-27T20:25:15Z")

</div>

no. You have to assign it an instance name. Then the code would be \_root.instanceName.getBytesLoaded();  
When you load, all you specify is a target level, not a container to load it into. The only way I know how to do it is to load it into a container clip with an instance name and then target that clip.

---

<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:** [August 27, 2003, 8:45pm UTC](https://forum.kirupa.com/t/-root-and-the-like/29510/5 "2003-08-27T20:45:44Z")

</div>

In that case how can i make an existing file a movie clip??

---

<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:** [August 27, 2003, 8:49pm UTC](https://forum.kirupa.com/t/-root-and-the-like/29510/6 "2003-08-27T20:49:01Z")

</div>

can you email me what you have or post a fla? I’m not very good at explaining. Basically what you do it have a temporary placeholder movie clip that gets unloaded and your movie loads in instead. The other thing you could do is put a preloader in each of your movies…jacket2, jacket3, etc and use this.getBytesLoaded. That would be the easiest way

---

<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:** [August 27, 2003, 10:05pm UTC](https://forum.kirupa.com/t/-root-and-the-like/29510/7 "2003-08-27T22:05:34Z")

</div>

well the reason im askin is cause im trying to get my preloaders to work.

check this thread by me to catch up  
Preloader Question ( 1 2 )
