Calling function from attachMovie

Hi,

I have a button and when you press it it attaches a MC and calls a other function called showProductInfo().



_root["pod"+i].sub.pinfo.onRelease = function(){
				
				_root.attachMovie("popup", "popuper", i);
				_root.popuper.showInfo(i);
				
			}

And in the popop/popuper MC I have the function showInfo(id) in the first frame. But I can’t get it to work.


function showInfo(id){

this.txt.text = id;

}

Am I doing something wrong here