Dynamic buttons don't seem to work

Hey all :red:

I’ll explain a bit how my site is working.
So I have made 7 movieclips on the stage that will act as buttons. I gave them all the instance name “port_BTN_0”, port_BTN_1", …, port_BTN_7".
Then I will create movieclips as a child of those buttons that will act like imageholders.
When the user rolls over the buttons, they will fade away.

And here in the last command, it seems to fail.

Here is my code.


for (var j:int = 0; j<n; j++) {
	//duplicate a movieclipholder from the library and put it as a child under "port_BTN_"+j
	var mc:rolloverMC = new rolloverMC();
	mc.j=j;
	mc.name = "rolloverMC_"+j
	mc.x=(-this["port_BTN_"+j].x)+(180*j)
	mc.y=(-this["port_BTN_"+j].y)+300
	trace (this["port_BTN_"+j].x)
	trace (mc.y)
	mc.alpha=1;
	this["port_BTN_"+j].addChild(mc);
	//load an image to the imageholder
	var imageLoader:Loader = new Loader();
	var image:URLRequest=new URLRequest("portfolio/t"+j+".jpg");
	imageLoader.load(image);
	mc.thumbClip_MC.addChild(imageLoader);
	//***
	Tothis["port_BTN_"+j].addEventListener(MouseEvent.ROLL_OVER, rolloverMCfunc);
	function rolloverMCfunc(event:MouseEvent):void 
	{
		this.buttonMode=true;
		event.target.getChildAt(1).alpha = 0;
	}
//***
}

so where I put the /*** I seem to have a problem. What is happening? Well, there is one MC on stage that seems to respond. So I tried to change its instance name and still it responds, but the rest doesn’t. Strange isn’t it?

Can someone help me please?