Nested dynamic variable

I’ve never had to deal with a mc inside of an mc this way before… Basically they’re already on the stage and creating them dynamically would require recreating everything… Not worth it.


//14 total
for (var i:Number = 0; i < 14; i++){
	var mc:MovieClip = this["link"+i+"_mc"];
	//_root.subcontent_mc.links_mc.mc.onRelease = function(){
	mc.onRelease = function(){
		trace(i);
	}
	trace("link"+i+"_mc");
}

the commented line is pretty much what I’m trying to accomplish if that makes sense.