почему у меня когда я щелкаю на динамически созданный компонент, событие срабатывает у всех, trace выводит инфу по каждому созданному компоненту

:

Код:
function onTypeClick()
{
trace(this.y);
}
function onLoadMyXML()
{
var cnt=this.firstChild.childNodes[0].attributes.count;
for (var i=1; i<=cnt; i++)
{
var type_name=this.firstChild.childNodes[i].attributes.title;
var obj=null;
obj=createClassObject(mx.controls.Label, "label"+i, i, {text:type_name});
obj.move(10,22*i);
obj.onMouseDown=onTypeClick;
}
}
countTypes = new XML();
countTypes.onLoad =onLoadMyXML;
countTypes.i.gnoreWhite = true;
countTypes.load("http://url");