Flash + Apple Remote

I want to use the Apple Remote Control with a flash presentation but I don’t know how to script a listener to respond to the Remote Control’s buttons.

I tested with a textbox that was displaying the Key Codes for the standard keyboard buttons but nothing came up when i used the remote.

Has anyone tried this before? I searched the forums but didn’t find anything.

Thanks