Setting movieclip width from an array value

Hi guys and gals,

I’m having trouble defining the width of an mc based on an entry in an array.

Here’s what I have…

var arr_obama:Array = new Array();
arr_obama[0] = {Name:“mc_obama1” , Frame:“obama1”, Width:“34”};
arr_obama[1] = {Name:“mc_obama2” , Frame:“obama2”, Width:“143”};
arr_obama[2] = {Name:“mc_obama3” , Frame:“obama3”, Width:“23”};

var len:Number = arr_obama.length;

for (var n = 0; n < len; n++)
{ nme = arr_obama[n].Name;
frm = arr_obama[n].Frame;
wdth = arr_obama[n].Width;
rollover(nme,frm,wdth);
rollout (nme,frm);
}

function rollover(nme,frm,wdth)
{
_root[nme].onRollOver = function()

{_root.mc_bar._width=_root[wdth];
_root.gotoAndStop([frm]);
this.gotoAndStop(2);

}}

Basically what I want is when you rollover the mc obamaxx it makes the mc_bar the width as defined in the Width entry in the array.

Any ideas why this isn’t working?

Best
Steve