I'm writing a "Chicken and Eggs"-style game. I get an error in Main.as, line 160, that says "1119: Access of possibly undefined property ENTER_FRAME through a reference with static type Class." Line 160 is:
basket_mc.removeEventListener(KeyboardEvent.ENTER_FRAME,moveBasket);
basket_mc is a MovieClip of the basket used to collect falling eggs. moveBasket is a function to move the basket.
Any suggestions on how to get the program to recognize ENTER_FRAME as defined would be greatly appreciated.