при нажатии на мс1 он делает мс2, при нажатии на мс2 делает мс3, при нажатии на мс1 и на мс2 выводит трейс себя

надеюсь помог.

Код AS1/AS2:
var i:Number=1;
var gamecont:MovieClip;
function createElem(){
gamecont= _root.createEmptyMovieClip("element"+i, this.getNextHighestDepth());
gamecont.attachMovie("mc", "mc"+i,this.getNextHighestDepth());
gamecont._x=random(500);
gamecont._y=random(300);
gamecont.prop=i;
nowBtn=i;
_root["element"+nowBtn].onRelease=function(){
prevBtn=this.prop;
createElem();
}
_root["element"+prevBtn].onRelease=function(){
trace(this);
}
i+=1;
}
createElem();