disable screen touch while saving the score in ipad

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Manju123
Posts: 11
Joined: Mon Dec 30, 2013 6:08 am

disable screen touch while saving the score in ipad

Post by Manju123 » Mon Jan 20, 2014 10:58 am

Hi there,

how to disable screen touch while saving the score in ipad using livecode.

Thanks,
Manjula
Last edited by Manju123 on Thu Jan 23, 2014 5:36 am, edited 1 time in total.

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: disable screen touch while saving the score in ipad

Post by LCNeil » Mon Jan 20, 2014 11:08 am

Hi Manjula,

I have moved your topic to a more relevant section of the forums.

Something that you should be able to use is "mobileClearTouches". This allows the buildup of any touch messages, that are not needed, to be cleared.

An example from the LiveCode dictionary is-
on tellUserInstructions
play specialFolderPath("engine") & slash & "Instruction_1.mp3"
wait until the sound is "done"
mobileClearTouches
end tellUserInstructions

Here, if the mobileClearTouches call was not made, any touch events the user created while the sound was playing would be queued and then be delivered immediately afterwards potentially causing unwanted effects.
I hope this gives you some leads.

Kind Regards,

Neil Roger
--
RunRev Support Team ~ http://www.runrev.com

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: disable screen touch while saving the score in ipad

Post by Jellicle » Mon Jan 20, 2014 2:40 pm

Manjula, create a rectangle graphic object that is the same size as the iPad screen, make it invisible, opaque and set it's blend level to 100. Make sure it's in front of everything else on the screen. When you need to stop users interacting with other controls just show the graphic.

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Post Reply