for (var i = 1; i<=12; i++) { this["mc"+i]["fon"+i].onPress = function() { this._parent.startDrag(false); }; this["mc"+i]["fon"+i].onRelease = function() { stopDrag(); trace(_root["mc"+i]._y); }; updateAfterEvent(); }