I have been building a Video wall with Hype for a Friend.
The Wall comprises of a wall of Thumbnails of his dvd collection he has stored on HD and over a home network
A user can click a thumb and it will play the video, select to see child, adult or all rated videos.
Each can show a description of the video and the whole thing is searchable.
Anyone can access it from any computer in the house on his network. Think home grown netflix type of interface for you own movies.
And all easy for hime to update with new movies without touching the project.
A lot of work getting everything to work. Right!
So imagine my joy, when I think I am all good go, I try and trigger a scene load through an event and JS…
[Error] TypeError: undefined is not an object (evaluating 'v[h].v[P[s.id]].cL') Ke HYPE-518.thin.js:1794:303 Hb HYPE-518.thin.js:1797 (anonymous function) f HYPE-518.thin.js:1132
I mean what does that mean. When we all speak about having JS variable names that we can understand trying to go through this sort of errors in the debugger make you a true believer.
I discovered even from a simple button I could not transition to another scene.
The only way I could figure this problem out was to disable all my JS loads and calls and then bring them up one by one. Not as easy as it sounds trust me. And you have to get creative.
Remember my JS had already loaded and everything else was working ok. But any scene load action from UI or from the likes of:
*hypeDocument.showSceneNamed('somescene', hypeDocument.kSceneTransitionCrossfade, 1.1)*
would fail .
So who can guess what type of code would stop ALL Hype scene loads in their tracks and give this undefined error.
(and it is not a bad var) that would be too easy… and this is not an obvious bit of code.
I bet no one can …
Who ever does gets the title of Tumult Genius of the month.