Hi!
I am working for an app that will pull data from a remote site, and show it in a TableView. I have it almost done, but I am stucked in a few issues that I think are corona bugs? or they’re not implemented right? not sure, but here is the issue…
What I am doing is creating 3 groups with 100% height and width. The first one contains a TableView that is scrollable. The second contain a header with 2 buttons that’s a total of 136px height and 100% width and a footer with 100% width and 29px height. The third is is a popup that will fill the whole screen with a bg with alpha (so its transparent), text and a couple images. Having that order, the tableview is behind the second group wich contains the header with 2 buttons and the footer right. You can scroll the table and tap an item. When you tap an item the third group overlaps everything showing the content.
So the issue starts here. The tableview will be scrollable even if the second group header overlaps it; you can scroll the table swiping your fingers over the the logo that’s in the header!!! also, tap it and the popup is shown!!! The popup has an event that when you tap the area, it should close, but, nothing happens, because the tableview wich is in the back (3 layers back) is still reacting.
I was thinkin that maybe using this:
display.getCurrentStage():setFocus( Popup );
But not, It doesn’t work, the table view keeps doing the same thing (also the header buttons of the second layers that’s behind the popup keep receiving events!)
So I am trapped in a big issue here.
I think the problem here is that Corona is doing something totally out of sense (with all respect). I mean we have layers right? and if I have one layer over other, supposedly the one that should receive the button hit event, or whatever event, is the layer on top! (call it group) right?
This is and issue I think how Corona is controlling the events.
I am Flash/ActionScript developer, and this is a simple logic, if you have 2 layers, in one you create a bg, with a button, and in the second layer, another bg, with a button, I mean 2 MovieClips/Groups one over the other, the front most button will react first for any user interaction always. That’s how Flash works, and other systems like this, wich makes sense, but Corona is not doing this right…
Just guessing what the problem is, or I am wrong and there’s a way actually to do this???
Here I am attaching a flash test based on ActionScript 2:
http://www.ibobx.com/corona/testlayersevents.html
Showing this concept.
You can download the fla here: http://www.ibobx.com/corona/testlayersevents.fla and open with the Flash Ide to see what I mean…
Please point me out if this is a bug, an addition that I should wait for, or simply I am digging this badly…
Thanks a Lot for your help!!
Roberto.
[import]uid: 6046 topic_id: 1875 reply_id: 301875[/import]
