How to change this function into AS 2.0?

So i found this function which works for me


function hideAllThumbs() {
 trace("Hiding all thumbs !!!");
 for (var x in contentWeb.thumbsPortfolio) {
  if (contentWeb.thumbsPortfolio[x]._name.substr(0, 14) == "thumbContainer") {
   removeMovieClip(contentWeb.thumbsPortfolio[x]);
  }
 }
}

but i think it’s so 2005. How can i make this function more 2008???

regards