for (i=0; i<48; i++) { this["in"+i+"_mc"].X = i; this["in"+i+"_mc"].onChanged = function() { b.text =""; b.text = this.text;} };