Let's say I have ten widgets that have ten items that need to be turned off. What am I doing wrong here?

Code:
for(i=1;i<=10;i++){
	var tempWidget = ["widget0" + i];
	trace(tempWidget);
	tempWidget.item._visible=false;
}
The trace returns the correct value yet the loop doesn't turn the ten items off. Why?