# \_root.holder\["name"+i\].getBytesLoaded(); problem

**URL:** <https://forum.kirupa.com/t/-root-holder-name-i-getbytesloaded-problem/284885>\
**Category:** flash\
**Created:** [March 24, 2009, 6:07pm UTC](https://forum.kirupa.com/t/-root-holder-name-i-getbytesloaded-problem/284885 "2009-03-24T18:07:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freddythunder](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@Freddythunder](https://forum.kirupa.com/u/Freddythunder)\
**Post date:** [March 24, 2009, 6:07pm UTC](https://forum.kirupa.com/t/-root-holder-name-i-getbytesloaded-problem/284885/1 "2009-03-24T18:07:40Z")

</div>

Hello everybody - long time!

I read the sticky - I’m using Flash CS3, but just actionscript 1.0/2.0; mostly 1.0…

Anywho. I’ve made this photo gallery that loads in 100 (used to be 200) photos at a time into a movieclip that slides back and forth. Everything works loading-wise, here’s my dilemma. I want to be able to tell people that there’s 100 pictures loading, so I’d try to use preloaders.

Here’s the deal, I can’t seem to find the bytesLoaded() from those buggers! I try to trace it the bytesTotal and get 100 zeros! Here’s where I’m at:

```auto

function popStrip() {
	xloc = 0;
	for (i=0; i<thumbs.length; i++) {
		_root.strip.createEmptyMovieClip("pic"+i,i+200);
		_root.strip["pic"+i].loadMovie("http://www.snapbooth.com/booth/"+currentdir+"/"+thumbs*);
		_root.strip["pic"+i]._x = xloc;
		_root.strip["pic"+i]._y = 0;
		_root.strip["pic"+i]._xscale = _root.strip["pic"+i]._yscale=40;
		xloc += 150;
		trace(_root.strip["pic"+i].getBytesTotal()+" "+i);
	}
}

```

I even tried this as a backup plan, but this was only a guess:

```auto

function popStrip() {
	xloc = 0;
	for (i=0; i<thumbs.length; i++) {
		_root.strip.createEmptyMovieClip("pic"+i,i+200);
		_root.strip["pic"+i].loadMovie("http://www.snapbooth.com/booth/"+currentdir+"/"+thumbs*);
		_root.strip["pic"+i]._x = xloc;
		_root.strip["pic"+i]._y = 0;
		_root.strip["pic"+i]._xscale = _root.strip["pic"+i]._yscale=40;
		xloc += 150;
		_root.strip["pic"+i].onLoad = function(){
                         trace('this pic loaded!');
               }
	}
}

```

At thsi point, I’m going to put up some dummy thing that states images are being loaded, but I’m really curious on why I can’t seem to target these movieClips!

Thanks!
