03 Jan 2014, 03:41
Generic-user-small

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 gamingjs.com says ‘Undefined’’ instead of the number for keypressed. Could you please help us with this? Appreciate.

03 Jan 2014, 12:12
Chris_strom_headshot_200_pragsmall

Chris Strom (79 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: http://is.gd/VctrUs. 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!

  You must be logged in to comment