# Loaded bytes question

**URL:** https://forum.kirupa.com/t/loaded-bytes-question/65617
**Category:** Uncategorized
**Created:** [September 28, 2004, 6:56am UTC](https://forum.kirupa.com/t/loaded-bytes-question/65617 "2004-09-28T06:56:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![newflavour](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@newflavour](https://forum.kirupa.com/u/newflavour)
#### Post date: [September 28, 2004, 6:56am UTC](https://forum.kirupa.com/t/loaded-bytes-question/65617/1 "2004-09-28T06:56:19Z")

</div>

hey folks,

I have the following code attached to a movie clip which I am using to load various images into. How would I go about finding the total size of the image being loaded so I can put it into a variable. I want to then show this variable value in a text field so the user knows how big the image is that is being loaded.

```auto
onClipEvent (data) {
  	this._alpha = 0;
  	this._x = 496;
  	this._y = 306;
  	this._x = this._x-(this._width/2);
  	this._y = this._y-(this._height/2);
  }
  onClipEvent (enterFrame) {
  	if (this._alpha<100) {
  		this.float_alpha += 20;
  		this._alpha = this.float_alpha;
  	}
  }

```

I’m sure there’s probably an easy way of doing this but at the moment my brain is fried and I can’t seem to get it.

any help would be greatly appreciated.  
NF

---

<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: [September 28, 2004, 6:58am UTC](https://forum.kirupa.com/t/loaded-bytes-question/65617/2 "2004-09-28T06:58:30Z")

</div>

show us the code with the LOAD command… are you using a movieClipEvent.loadClip or a simply loadMovie… because each has a different approach… 😉

---

<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: [September 28, 2004, 7:00am UTC](https://forum.kirupa.com/t/loaded-bytes-question/65617/3 "2004-09-28T07:00:26Z")

</div>

> [@3rdeye](#):
>
> show us the code with the LOAD command… are you using a movieClipEvent.loadClip or a simply loadMovie… because each has a different approach… 😉

loadMovie(“images”+LocationPrefix+imagelocation, \_root.loaderContainer);

where \_root.loaderContainer is the movie object that has the earlier code attached to it.
