# Loaded bytes question

**URL:** <https://forum.kirupa.com/t/loaded-bytes-question/123879>\
**Category:** Uncategorized\
**Created:** [September 28, 2004, 6:56am UTC](https://forum.kirupa.com/t/loaded-bytes-question/123879 "2004-09-28T06:56:19Z")\
**Posts on this page:** 1\
**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/123879/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
