I've got a set of dynamically created listElements wich are Buttons. When I roll over them I want them to trace thier names(numbers). The following script doesn't work, the last value of "i" is alway returned instead of the number corresponding to the aktual listElement. Any ideas??
thx Alex
PHP Code:
this.onEnterFrame = function(){
for(i=0;i<numElem;i++){
this["listElement"+i].onRollOver = function(){
trace("listElement"+i);
}
}
}