Move many buttons all at same time

Anthony Howe anthonyhowe at mac.com
Fri Jan 21 08:39:50 CST 2011


If I understand requirements, 

AnimationEngine does it pretty well....

A quote from Maltes animationEngine docs:

"To act on multiple controls simultanously do the following

aeLock[commandname]s
[command]
[command]
aeUnlock[commandname]s

e.g.:

aeLockWidths
aeChangeWidth the long ID of grc 1,100,1000,"bounce"
aeChangeWidth the long ID of fld 1,100,1000,"bounce"
aeUnlockWidths

This will allow you to act on multiple controls in sync, just like with aeMoveTo.


you could also try adding the name of the target controls to an array, then looping through it with the command?

on mouseUp
    put the name of btn "btn1" into controlA[1]
    put the name of btn "btn2" into controlA[2]
    repeat for each element tControl in controlA
        move tControl x,y
    end repeat
end mouseUp


cheers,

A.

On 22/01/2011, at 1:29 AM, Jim Sims wrote:


On Jan 21, 2011, at 3:14 PM, JosepM wrote:

> 
> Nop... They move one after one, when the first finish all the movement the
> next one begin the next...

Can you group them and then move the group?

sims




_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list