I have a loop to create clip buttons w/jpg images on face && load same jpgs into main viewer clip. Problem is, the mc buttons won’t respond to onRelease…Any help appreciated!
for(i=1;i<3;++i)
{
var mc = “mc”+i; // button mc clip names
var images:Array = new Array(["…/images/"+i+".jpg"]); //1.jpg, 2.jpg - 72px square
//-- create base mc & then another mc -----------------
_root.createEmptyMovieClip(“base”,i);
_root[base].createEmptyMovieClip(mc,i+4);
//-- set mc location
_root[base][mc]._x = 100;
_root[base][mc]._y = i*80;
//-- load button jpg images -----
_root[base][mc].loadMovie(images);
///////////////////////// works up to this point ////////////////////////
/////// displays 2 images, but can’t make into buttons…////////////////
// – make mc into buttons and load jpgs into main_mc holder -------
_root[base][mc].onRelease = function()
{
_root.main_mc.loadMovie(images);
};
}