Trying to addEventListeners [Keyboard] to notes for a music game

Hi again,

So I have set up a game, at the moment it works as a simulator (http://www.youtube.com/watch?v=ru4vGqhsBMA)

I am trying to add keyboard listeners to each note, so when you tap the arrow key [<] [^] [>] it hits the note in that column, but only one at a time.

I have tried a few things, but I cant seem to apply the code to each note, it just applies it to everything.

To sum up how it’s working. The engine reads an XML file and sets a timeout for each note depending on the given time and value. The timeout is for a function called addNotesToStage() which adds a child, and assigns its x,y positions depending on arguments.

Each note is given a listener called noteKiller(e:Event), which waits until the note hits the target, then it gets rid of it.

function noteKiller(e:Event) {
    b = MovieClip(e.target);
    if (is16x == true || isRevenge == true) {
        b.tapper.gotoAndStop("revenge");
    }else{
        if (b.name == "1"){
            b.tapper.gotoAndStop("red");
        }
        if (b.name == "2"){
            b.tapper.gotoAndStop("green");
        }
        if (b.name == "3"){
            b.tapper.gotoAndStop("blue");
        }
    }
    if (b.y >= hitLine.y) {
        b.removeEventListener(Event.ENTER_FRAME, noteKiller);
        removeChild(b);
        streak++;
        score+=pointINT;
        splash = new Splash_mc();
        addChild(splash);
        splash.addEventListener(Event.ENTER_FRAME, splashKiller);
        splash.x = e.target.x;
        splash.y = e.target.y;
    }
}

(ignore the splash code)

How can I make it so that instead of having it get killed when it hits the target, that it gets killed if it hits the target and then the keyboard arrow is hit, but so that they key cant be held down, you can only hit a note if you press, but to hit the one after you must release that key.

Sorry if that was confusing… I too, am confused :stuck_out_tongue:

Thanks,
Mattster