removeListener()? Ade
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Stephen Hueners Sent: 29 January 2006 13:09 To: 'Flashcoders mailing list' Subject: [Flashcoders] Deleting a KeyListener I'm setting up a listener for the Enter key in a login portion of my movie and need to delete it after it runs so that if the user hits ENTER later in the original function is not called. I _thought this was the correct way to do this but testing proves me wrong: var keyForm = new Object(); keyForm.onKeyDown = function(){ if (Key.getCode() == Key.ENTER){ _level0.loadLoginVars("login", ID.text, Pass.text); this.gotoAndStop("checking"); delete keyForm; }; } Key.addListener(keyForm); Many Thankx --steve... _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders