OnPress not working

I have the following code it all works great but When I click on a specific tab button it always displays “postings”. Weird it should display the name of the tab button, according to my onpress function. help.

menuArray = [“currentInfo”, “News”, “Sports”, “Postings”];

_global.xyz = function () {

mLen = menuArray.length;

for (i=0; i < mLen; i++)

{

  myName=menuArray*;
  var x= attachMovie("Tab_Mc", myName , i*10);
  x._x = i * x._width;
  x._y = 200;
  x.name= myName;
  x._alpha = 80;
  x.TabText= myName; //Textbox inside the Mc
  x.arraycntr= i;
 
  x.onPress = function() 
    { 
       trace(x.name);
    }

}

}

// instantiate the onLoad() redefinition
xyz();

x.onPress = function()
{
trace(this.name);
}

thanks…I knew it was something simple…many thanks again.