Hello,
Yet another mystery!
I am trying to display a rectangle that takes the all screen (so to obscure some buttons underneath ) I drawing this rectangle object in the main.lua because I want it to a global object (because I want to be able call it form other module as REC.isVisible = true/false). When the app start or resume I make the REC visible and start a 10 sec timer to turn the REC off.
This part works beautifully. When the app start, the REC is visible and obscure the main menu buttons (. From main.lua the app jumps to menu.lua)
BUT
If I call the function (global) that turn the REC on (visible) from another module (say my game.lua) the REC does not show up on top and so do obscure the buttons underneath. I can see it but for some reason it is under all the menu buttons. I tried using REC:toFront() but no luck. I should say that the REC is not part of any display group. I tried to insert it into the local group of the module where I want to call it from and have it the last object inserted but no luck either.
I am using DIrector. I am kind at lost since I thought this will be a piece a cake the REC object is global so I should be able to turn it visible or not from anywhere. Actually that part is fine. The issue is how to make sure it appears above all other objects no matter what is displayed at the time…
I am sure it is late and I am not making much sense!
Thanks for any pointers.
Mo.
Ps: why do I want to do this? I am trying to implement Revmob ads and I need a waiting window to obscure the main menu ( while the ad is loading)
[import]uid: 100814 topic_id: 32797 reply_id: 332797[/import]