yoxview: how do I use the onEnd event with a gallery?

yoxview: how do I use the onEnd event with a gallery?

Hello All,

I'm trying to combine the onEnd event with the feature Set multiple images for a single thumbnail.
This is so when you get to the end of the slideshow it will close rather than loop.

I can make them to work by themselves just not together.
This is how I'm testing it:

In this first one I set it up to where I know the slideshow works and inserted the onEnd() code in various places where I thought it might work.
http://paste8.com/507

And this the second one I cloned onEnd Event demo page and plugged in my own image paths, verified it worked with single images and then inserted the slideshow code in various places.
http://paste8.com/508

None of these have worked, so any help would sure be appreciated!