Page 1 of 1

Change Position of many images

Posted: Mon Jun 15, 2015 1:23 pm
by oneup
Hi,

I have 52 Images and i need to adjust their position on my Card.
All of them need to be on the same position but i dont want to change position of every single one of them by hand.
Is there a way of copying the propeties of one and use them for all of the other images?

Re: Change Position of many images

Posted: Mon Jun 15, 2015 1:30 pm
by LCNeil
Hi OneUp

Something like the following should work-

Code: Select all

on mouseUp
   put the loc of image "test" into tLoc
   repeat with x = 1 to the number of images of this card
      set the loc of image x to tLoc
   end repeat
end mouseUp
Make sure to change image "test" to the name of the image that is in the location that you want all other images to be

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-

Re: Change Position of many images

Posted: Mon Jun 15, 2015 1:35 pm
by oneup
Hey it worked great thanks