# Prototype?

**URL:** <https://forum.kirupa.com/t/prototype/151144>\
**Category:** Uncategorized\
**Created:** [June 13, 2005, 6:00pm UTC](https://forum.kirupa.com/t/prototype/151144 "2005-06-13T18:00:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eberth](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/eberth/32/41_2.png) [@Eberth](https://forum.kirupa.com/u/Eberth)\
**Post date:** [June 13, 2005, 6:00pm UTC](https://forum.kirupa.com/t/prototype/151144/1 "2005-06-13T18:00:13Z")

</div>

Hi, i was checking the code for the resizable gallery that’s on “best of k”, and i found this code:

```auto

MovieClip.prototype.loadPic = function(pic){
	_root.containerMC._alpha = 0;
	this.loadMovie(pic);
	_root.onEnterFrame = function(){
		var t = containerMC.getBytesTotal(), l = containerMC.getBytesLoaded();
		if (t != 0 && Math.round(l/t) == 1){
			var w = containerMC._width + spacing, h = containerMC._height + spacing;
			border.resizeMe(w, h);
			delete _root.onEnterFrame;
		}
	}
};

```

i’m “returning” to flash, after a year, almost two, so i dont remember that “prototype” function…

so, can someone plz explain it to me ??? :S what is it for? is it used instead of something else?..
