small medium large xlarge

03 Jan 2014, 03:41
Adnan Manzoor (1 post)

Hi chris; First of many thanks for this easy to understand book. My kids love it. We are using ICE and try to put the keypress event as defined on page 37 of this book but get the error window as ‘The page at says ‘Undefined’’ instead of the number for keypressed. Could you please help us with this? Appreciate.

03 Jan 2014, 12:12
Chris Strom (278 posts)

Glad you’re enjoying the book so far! Definitely happy to help here…

My best guess for the problem here is that you’ve typed keycode instead of keyCode (the “C” needs to be capitalized).

If that doesn’t fix it, you can try loading up this project: That is an ICE project that contains just the code from page 37. It works for me and hopefully for you as well. If it does not work, let me know. If it does work, compare the code with yours – something must be different.

Hope that helps!