selectedObject()

Richmond Mathewson geradamas at yahoo.com
Tue Feb 3 15:08:27 EST 2009


Humpf:

probably have to set the DEFAULTSTACK to the stack which you are wishing
to act on, select the object, manipulate, and then set DEFAULTSTACK back
to the stack from which the manipulation command is coming.

Probably best to set the LOCKSCREEN to true while you do this so as
to avoid problems with an end-user with the crazy-click-click
condition!

IMAGINE:

2 single-card stacks; "ONE" and "TWO";

stack "ONE" contains an image "STUPID PICTURE",

A button on stack "TWO" containing this script:

on mouseUp
  set the lockScreen to true
  set the defaultStack to stack "ONE"
  select img "STUPID PICTURE"
  set the angle of img "STUPID PICTURE" to 25
  set the defaultStack to stack "TWO"
  set the lockScreen to true
end mouseUp

---------------------------------------------

Mind you, I don't know why you bother:-

on mouseUp
  select img "STUPID PICTURE" of card "FIRST" of stack "ONE"
  set the angle of img "STUPID PICTURE" of card "FIRST" of stack "ONE" to 25
end mouseUp

sincerely, Richmond Mathewson
____________________________________________________________

A Thorn in the flesh is better than a failed Systems Development Life Cycle.
____________________________________________________________


      



More information about the use-livecode mailing list