Assigning listener to Specific Coordinates on the stage?

So, I'm trying to create a type of paper doll app. I have a the doll loaded, and I want to be able to flip through different hairstyles as you tap on the head, different faces as you tap on the face, and different outfits as you tap on the body itself. I havent the slightest idea on how to even begin to create a code like that, though.

I've looked everywhere to try and find a coordinate specific code example. Could someone please give me a nudge in the right direction? I'd really appreciate it.

Listeners need to be added to display objects, they can't just be assigned to coordinates. (Well, you could listen for a tap inside an area you defined using a Runtime listener, but that's not best practice.)

What you could do is put a newRect in and do this;

1
2
obj.isVisible = false
obj.isHitTestable = true

You could also use rects/circles to set these positions. Add listeners to them, and when your done set there alpha to 0.01 (so there invisible but can still be touched) and problem is then solved :)

views:1285 update:2011/12/31 9:35:10
corona forums © 2003-2011