How to operate on groups using script

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Contact:

How to operate on groups using script

Post by reelstuff » Mon Feb 23, 2009 6:54 pm

I am attempting to see how to script a group so that when an object in that group is clicked, selected?

I can then obtain that objects fileName

Code: Select all

--get the fileName of selected image of group
put the fileName of img into fld "Field_who_am_I"
obviously my understanding of how to obtain the information from each images as it is clicked, is lacking.

thanks in advance for any suggestions.

gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Post by gyroscope » Mon Feb 23, 2009 9:14 pm

Hi reelstuff, one way would be:

Code: Select all

on mouseUp
 put the short name of the target into fld "Field_who_am_I"
end mouseUp
Hope that's of help.

:)

reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Contact:

Post by reelstuff » Mon Feb 23, 2009 9:40 pm

gyroscope wrote:Hi reelstuff, one way would be:

Code: Select all

on mouseUp
 put the short name of the target into fld "Field_who_am_I"
end mouseUp
Hope that's of help.

:)
yes, thank you for your reply, that gives me a direction to head in.

8)

Post Reply