Page 1 of 1

How to operate on groups using script

Posted: Mon Feb 23, 2009 6:54 pm
by reelstuff
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.

Posted: Mon Feb 23, 2009 9:14 pm
by gyroscope
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.

:)

Posted: Mon Feb 23, 2009 9:40 pm
by reelstuff
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)