Sobald ich auf einen mit dem Script erzeugten Button klicke gibt er mir komischerweise die IDs von allen Buttons auf, obwohl Rollover und Rollout richtig funktionieren. Ich steig da gerade nicht durch hat jemand eine Idee?
PHP-Code:
tm=createEmptyMovieClip("thumbMenue",getNextHighestDepth());
tm._x=120;
tm._y=120;
with (tm) {
for (i=0;i<pj.length;i++) {
thumb=createEmptyMovieClip("thumb"+i,getNextHighestDepth());
thumbImg=thumb.createEmptyMovieClip("img",getNextHighestDepth());
thumbImg.loadMovie("./images/"+pj[i]);
thumb._x=i*80;
thumb.id=i
thumb.onMouseUp = function () {
trace (this.id);
//_root.loadProject(this._name);;
}
thumb.onRollOver = function(){
this._xscale = 120;
this._yscale = 120;
this._x-=10;
this._y-=5;
_root.showToolTip(_root.pjNames[this.id],this);
}
thumb.onRollOut = function(){
this._xscale = 100;
this._yscale = 100;
this._x+=10;
this._y+=5;
_root.hideToolTip();
}
}
}