I have a bunch of images I'm adding to a scene with a horizontal scroller. I don't know how many images I am going to be dealing with at design time, but I want to be able to add a tap event to each of them (which will open it up in full screen). I know this functionality is possible because I've seen it in other apps, but I can't get it to work.

for(var i=0,img;img=images[i];i++){					
	pnlImageContents.append("<img id=\"" + img.id +"\" src=\"" + img.thumb + "\" class=\"thumbnail\">");
	Mojo.Event.listen($(img.id), Mojo.Event.tap, this.btnViewImage_TapHandler);
If you're wondering, "pnlImageContents.append" is a jQuery method that works. The code works up until the Mojo.Event.listen call.

Any help would be much appreciated.