var anzahl = 3; for (var i = 0; i<=anzahl; i++) { this["area_mc_"+i].ID = i; this["area_mc_"+i].onMouseMove = function() { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { trace("meien Id = "+this.ID); } }; }