Director popup - how to make it like a modal dialog?

I am using Director 1.4 popup for settings …

When I am displaying the settings popup. the swipe events are still propagated to the “pages” behind the settings popup.

How do I turn off the events for those background pages while a popup is displayed.

Thanks for your help in advance. [import]uid: 48484 topic_id: 22922 reply_id: 322922[/import]

Put an invisible but hitTestable fullscreen rectangle behind your popup with a touch listener that returns true. [import]uid: 44647 topic_id: 22922 reply_id: 91568[/import]

Thanks for your help.

I tried with fullscreen transparent image, enabling isHitTestable and worked fine (I see that I get intermitten issues if I set alpha property of the background image).

I wish there was a better way to stop event propagation to lower layers.

Tried adding a function and Director is spitting out an error. So, even without returning true from a function, things seems to work now.


Director ERROR: Failed to execute news( params ) function on ‘nil’.

?:0: attempt to call method ‘getOrCreateTable’ (a nil value)
----------------------- [import]uid: 48484 topic_id: 22922 reply_id: 91583[/import]