Tap and Mask

Hi there!!
I'm tryng to build a "buttonGroup", but it is not woking correctly. After some tests, I could associate this problem with the group mask.

Try to image this buttonGroup as a box with doors. Before you use the buttons you have to slide the box doors. So, my group is like this:

- Group + mask
-- Background
-- buttons
-- door 1
-- door 2

Without the mask, this works perfectly. But when you put the mas back the buttons work when they want (in a very strange way).

I uploaded a sample of my code to my public dropbox folder to you see what I'm doing. Link: http://dl.dropbox.com/u/28948129/buttonGroup.zip

The top button open/close the buttonGroup, buttons inside the button group just change their background (first tap: blue -> red, second tab: red -> blue).

You can comment/uncomment the lines 78 to 81 in uix.lua to see the diference.

I'm stucked with this for a while, so, any help would be appreciated. Thank you all!

Just in case someone has the same problem, look at remarks at: http://developer.anscamobile.com/reference/index/graphicsnewmask

views:1618 update:2011/9/27 8:54:05
corona forums © 2003-2011