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.