I'm a bit of a coffeescript noob (and fairly fresh with JS too). Would someone be able to help me understand an error I've been getting?
I've got an array holding Layer objects, and while checking a Touch Event on the bg layer, I want to trigger the shadows based on mouse position (just playing off one of the examples) and to do this I need to get the midX and midY values from the Layer objects. When I do this within a touch event though it gives me an error stating that "undefined is not an object".
I've uploaded the .framer here > http://spacebarkid.com/framer/cscript_play.framer/
and the plain code is here with comments