Some kind of mouse over effect.

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Kaubs
Posts: 124
Joined: Wed Jun 29, 2011 3:55 am

Some kind of mouse over effect.

Post by Kaubs » Tue Aug 02, 2011 9:54 pm

Hello,

I am trying to create an effect where I touch the screen on my iphone, slide my finger over an object (this can be an image, button, it doesnt really matter) and have it display a button but only while my finger is held down over the object. As soon as I release or slide off the object I'd like to have the button go away. I've tried a good bit with touchstart but it doesn't register when my finger touch enters the object boundaries unless I touch the object directly. I hope this all makes sense. Any thoughts?

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Some kind of mouse over effect.

Post by Dixie » Wed Aug 03, 2011 12:15 am

Hi..

The script is in the card script of the attached stack

hope it helps,

Dixie
Attachments
showOnTouch.livecode.zip
(1.67 KiB) Downloaded 349 times

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Some kind of mouse over effect.

Post by Dixie » Wed Aug 03, 2011 12:25 am

Kaubs...

You are asking more or less the same question in different threads... the example I have posted here should help you get started with the answer to the question you asked in the 'other' thread... are you guys working in tandem ?

Dixie

Kaubs
Posts: 124
Joined: Wed Jun 29, 2011 3:55 am

Re: Some kind of mouse over effect.

Post by Kaubs » Wed Aug 03, 2011 12:26 am

Thank you so much! This should work perfectly!

ctflatt
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 243
Joined: Sun Dec 06, 2009 12:24 am
Contact:

Re: Some kind of mouse over effect.

Post by ctflatt » Wed Aug 10, 2011 1:38 pm

Great example, Dixie!

Thanks!

Post Reply