Using an interrupt for my IR receiver

What version of the IRremote library do you have installed? The posted code is written for an older version (<3.0) and may not work well with the new library.