# Noobie

**URL:** <https://forum.kirupa.com/t/noobie/181831>\
**Category:** flash\
**Created:** [March 13, 2006, 4:11pm UTC](https://forum.kirupa.com/t/noobie/181831 "2006-03-13T16:11:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MJ\_Creations](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mj_creations/32/2242_2.png) [@MJ\_Creations](https://forum.kirupa.com/u/MJ_Creations)\
**Post date:** [March 13, 2006, 4:11pm UTC](https://forum.kirupa.com/t/noobie/181831/1 "2006-03-13T16:11:49Z")

</div>

Hey…  
I’m new to the forums as you could tell by looking at my post count…  
anyways, I was going through some tutorials, and had a question about a preloader code.

onClipEvent (enterFrame) {  
var bytes = \_root.getBytesTotal();  
var bytes\_loaded = \_root.getBytesLoaded();  
if (bytes\_loaded == bytes) {  
\_root.gotoAndPlay(2);  
this.kirupatxt = “movie loaded”;  
} else {  
\_root.gotoAndStop(1);  
this.kirupatxt = “loading (” + bytes\_loaded + “/” + bytes +")";

```
}

```

}

Ok… so there is the code provided in the tut. It works fine for my main movie file. But say I want buttons on the movie file that links to another movie file to navigate through a site… If I wanted the preloader to load through each page- I obviously would not use the \_root.xxx, right? Well I tried replacing the \_root with this, but it just would not work correctly. How can I acheive what I’m trying to do??

Thanks for any response.  
=)
