Scrollpanes and rollover - do i need to say more

The issue is as follows. I have a scrollpane with dynamically loaded movieclips (with text) and with each row I want to add a delete button. Initially I ried something with attachmovie to attach a picture, but that didn’t work. So the current version shows a red box. It is the intention that when the user presses this button row z will be deleted from the database. But I can’t get “z” to appear. In the end the property myUniqueID should give me this value.

However none of the mouseevents i know work (onRelease, onRollOver, etc). onMouseDown and onMouseUp work but in that sense that all buttons are treated by clicking on any of them (and all the buttons have different instances!) and as a value they always give the values of all buttons. onPress does not seem to work at all.

Here is a part of my code:
//create text movieclips
myButton = this.createEmptyMovieClip(“but”+z,this.getNextHighestDepth());
myButton.lineStyle(2, 0xffffff, 20, true, “none”, “round”, “miter”, 1);
this[“but”+z]._x = 10;
this[“but”+z]._y = -10+(z*25);

// this is one out of five textfieldcreations
myButton.createTextField(“text2”, 25, 63, 1,100, 20);
myButton[“text2”].multiline = false;
myButton[“text2”].wordWrap = false;
myButton[“text2”].border = false;
myButton[“text2”].background = false;
myButton[“text2”].variable = “”;
myButton[“text2”].text = hs[z][2];
myButton[“text2”].embedFonts = true;

//and this is the @#$# button that does not want to work
myRed = this.createEmptyMovieClip(“red”+z,this.getNextHighestDepth());
myRed.lineStyle(2, 0xffffff, 20, true, “none”, “round”, “miter”, 1);
myRed.beginFill(0xff0000, 100);
this[“red”+z]._x = 550;
this[“red”+z]._y = -5+(z*25);
this[“red”+z].myUniqueID = z;

//as said above also onRollOver,onRelease,onPress,onMousedown do not work
eval(“red”+z).onMouseUp = function() {
// at this moment it traces the following remark _level0.showHistory.scrollen.scrollPane.spContentHolder.brown.red1 for all buttons created (16 in my working example). brown is the mc connected to the scrollpane.
trace (this.myUniqueID);


It would be very much appreciated i anyone can come up with a solution

Best regards