Probably very easy!

hi there folks

i have loader1, loader2 and loader3

I also have pic1_mc, pic2_mc and pic3_mc

The pic movie clips all have a variable in the this scope called viewervariable, which is a number. Each clip has corresponding loader, as pics load into the three clisop at the same time.

I have created a prototype function, (below), and once told to load an image, the pic mcs have to tell their corresponding loader to show loading info, but i am having trouble referencing the corresponding loader, i presume it needs some sort of string join (‘loader’ + viewervariable), but i have tried this and it doesnt work

any ideas

tia

jamo

 
MovieClip.prototype.LoadImages = function() {
 if (this._x>this.CloseXpos) {
  this._x += (this.CloseXpos-this._x)/this.CloseSpeed;
 }
 if (Math.round(this._x) == this.CloseXpos) {
  //unload pics from viewers
  this.holder_mc.unloadMovie();
  //load new images into the viewer, 
 loadMovie(_global.Currentkitchen+'/'+_global.Image[Viewervariable]+'.jpg', 'this.holder_mc');
//tell its corresponding loader to start showing loading info
_root.loaders.loader[viewervariable]._visible = true;
_root.loaders.loader[viewervariable].Status = 'loading';
 }
};