Listener stops listening

Hi Kirupians!

I have a problem with a Flash (8) application.
Basicly what I have made is a Flash Form. I have a submit button which has a ListenerEvent(click). Somehow this event stops working after I clicked it once while I never unregistered the event.

I have stripped the code below, but when I leave 10-digit check out, everything works fine! Somehow that check disables the listener. I can push the submit button, but just nothing happens.

Check this out:


var sendListener:Object = new Object();
SendIt.addEventListener("click",sendListener);


// WHEN I LEAVE THIS CHECK OUT, EVERYTHING WORKS FINE!!
if (GET_NUMBER.length <> 10) { // NO 10 DIGITS
                verify.gotoAndStop(2);
                verify.verifyBOX.htmlText  = "Please fill out your 10-digit number";
                verify._visible = true;
            } else {
            // NOTHING IMPORTANT
}


sendListener.click = function() {
        var ORDER:LoadVars = new LoadVars();
        ORDER.number    = GET_NUMBER;

        var SENT = ORDER.sendAndLoad("http://www.somewebsite.com/send.php",ORDER,"POST");

        if (SENT) {
            // NOTHING IMPORTANT
        } else {
            // NOTHING IMPORTANT
        }
    }

Thanks for your help. I would really appreciate it since I’m out of options.