# How to use protoType

**URL:** <https://forum.kirupa.com/t/how-to-use-prototype/124990>\
**Category:** Uncategorized\
**Created:** [October 8, 2004, 4:22pm UTC](https://forum.kirupa.com/t/how-to-use-prototype/124990 "2004-10-08T16:22:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erica](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@Erica](https://forum.kirupa.com/u/Erica)\
**Post date:** [October 8, 2004, 4:22pm UTC](https://forum.kirupa.com/t/how-to-use-prototype/124990/1 "2004-10-08T16:22:55Z")

</div>

Sorry, I am careless about delete the thread which under the same title posted a few hours before.

If loading a jpg into an empty MC, how to adjust its size? The codes without rejust its size are:

//------------------------------------------  
// Load pictures  
picarr = new Array();  
picarr = \_root.pic.picitem.split(",");  
j = picarr.length;  
spacing = 10;  
//----------------------------------------------------------  
// Duplicate empty movie  
for (i=0; i\<j; i++) {  
loadpic.\_visible = false;  
var name = “loadpic”+i;  
loadpic.duplicateMovieClip(name, i);  
var x = (loadpic.\_width+spacing)_i;  
this[name].\_x = x;  
this[name].i = i;  
// Thumbsnail effect  
this[name].onRollOver = function () {  
this.effect.gotoAndPlay(2);  
};  
this[name].onRollOut = function () {  
this.effect.gotoAndStop(1);  
};  
this[name].onRelease = function () {  
this.effect.gotoAndStop(1);  
\_root.jpg.changealp(picarr[this.i]);  
};  
mc = this[name].empty;// this empty is the name of the empty MC  
mc.loadMovie(picarr_);// loading the Jpg file and dispaly it at its original size  
};

The codes above run well. But how to use protyType to adjust its size to 40\*40.
