Scott,
'the selectedObjects' function returns a list of all objects selected at a given
time. I suppose an object could poll it (send in time) and do an action when it
finds it's long ID is no longer listed.
That's probably the hard way, but food for thought.
Phil Davis
On 3/1/12 10:48 PM, Scott Rossi wrote:
Is there any way for an object to know when it is unselected using only
scripts within the object itself?
The selectedObjectChanged is sent to an object when it is selected, but when
the object is deselected, the object will only get the selectedObjectChanged
message if the selection is changed to nothing. Is there some way for the
object to know it is no longer selected without resorting to an external
script? (no front, back, card or stack).
I have a group of objects that needs to reorganize itself when it is
deselected, but I'd like to avoid using external scripts to do this so the
object is easily portable.
Thanks for any suggestions.
Regards,
Scott Rossi
Creative Director
Tactile Media, UX Design
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
Phil Davis
PDS Labs
Professional Software Development
http://pdslabs.net
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode