fix for protection for director:openPopUp

change line 218 of director.lua file to read

protection:addEventListener( “tap”, fncProtection ) [import]uid: 7911 topic_id: 12282 reply_id: 312282[/import]

which version? And do we have to change the whole line or to ADD this new line?

thanx,
ali [import]uid: 41548 topic_id: 12282 reply_id: 44735[/import]

Hello,

I don’t think the change to director 1.3 above is necessary!

As an example if you change line 81 in the director demo screen3.lua file from:

[lua]background:addEventListener( “touch” , touched )[/lua]

to:

[lua]title:addEventListener( “touch” , touched )[/lua]

The pop-up will only disappear if you click the title [import]uid: 8366 topic_id: 12282 reply_id: 44740[/import]

@all4 it’s for director 1.3 and all you are doing is changing the word touch to tap [import]uid: 7911 topic_id: 12282 reply_id: 44747[/import]

@evs but what if I wanted it to close when the screen was touched anywhere. with my solution it will work with a button or the whole screen with your solution it only works with a button [import]uid: 7911 topic_id: 12282 reply_id: 44748[/import]

Hello,

Bizarrely the pop up in the demo now works perfectly with line 81 back to:

[lua]background:addEventListener( “touch” , touched ) [/lua]

Without changing the director file.

Whereas earlier the buttons were reacting though the pop up, like you described in the other thread

  • strange! [import]uid: 8366 topic_id: 12282 reply_id: 44752[/import]

just noticed I didn’t explain the problem or atlease the problem I’m having
for some reason when the popup is on the screen the protection isn’t working by making the change above everything works not sure why as I’ve gone over screen3.lua in the ex. code and can’t figure out why it works and mine doesnt but I posted this so if anyone is having the same problem this will be an easy fix [import]uid: 7911 topic_id: 12282 reply_id: 44754[/import]