Hi kape123,
The problem is actually not with the event handlers but with the alerts. Under caja, alert will be converted to a console.log in Firefox and output via firebug. When I look at your sample app I see the events firing in the Firebug console, so your events are working fine.
Let me know if you have any issues along the way.
Jonathan LeBlanc
Technology Evangelist
Yahoo! Developer Network
Twitter: @jcleblanc
First of all - thanks a lot for your help... it means a lot when you can talk with someone who has experience on something you are just starting with.
Now that you are telling me that event handlers work - main question - how can I play sounds? I've updated example to create sound player and again - it works directly, now over YAP shell. I've also tried to make use of yml:audio, but it throws error (in YAP shell) in that case. Also, before using this player I've used
SoundManager2, but ditched it because it has complicated JavaScript+Flash initiallization and in documentation I've read that YAP cajoles those kind of stuff.
Thanks again for your help!