LockMoves

Randy Hengst iowahengst at mac.com
Mon May 19 08:45:29 EDT 2014


It would be worth double-checking to make sure each item in the groups you are moving has its layer mode set to dynamic…. I confess to having forgotten that step on several occasions. 

On May 18, 2014, at 7:13 PM, Nakia Brewer <Nakia.Brewer at westrac.com.au> wrote:

> After playing with a test stack John Dixon sent me last night (Thanks John, you are the man!) I think the key with moving objects simultaneously is 
> Making sure you include the 'without waiting' syntax.
> 
> The following works fine:
>   lock moves
>   move grc 5 to the points of grc 1 without waiting
>   move grc 6 to the points of grc 2 without waiting
>   move grc 7 to the points of grc 3 without waiting
>   move grc 8 to the points of grc 4 without waiting 
>   unlock moves
> 
> The following fails miserably:
>   lock moves
>   move grc 5 to the points of grc 1 
>   move grc 6 to the points of grc 2 
>   move grc 7 to the points of grc 3 
>   move grc 8 to the points of grc 4 
>   unlock moves
> 
> 
> Nakia Brewer | Technology & Solutions Manager | Equipment Management Solutions
> t: (02) 49645051 | m: 0458 713 547 | i: www.westrac.com.au
> 
> 
>   ACN 009 342 572
> 
> 
> -----Original Message-----
> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dar Scott
> Sent: Monday, 19 May 2014 7:44 AM
> To: How to use LiveCode
> Subject: Re: LockMoves
> 
> This works for me on Mavericks and LC 6.6.1.
> 
> on mouseUp
>   set the location of graphic "Rectangle" to 100,100
>   set the location of graphic "Round Rectangle" to 100,200
>   set the location of graphic "Oval" to 100,300
>   wait .7 seconds with messages
>   set the lockMoves to true
>   move graphic "Rectangle" rel 300,0 without waiting
>   move graphic "Round Rectangle" rel 300,0 without waiting
>   move graphic "Oval" rel 300,0 without waiting
>   set the lockMoves to false
> end mouseUp
> 
> What OS are you using?
> 
> Dar
> 
> On May 18, 2014, at 6:37 AM, Nakia Brewer <Nakia.Brewer at westrac.com.au> wrote:
> 
>> Hi,
>> 
>> I have a need to move 2 groups at the same time (one menu drops in whilst one drops out).
>> 
>> I'm currently using the move command to achieve this but they are moving one at a time (second doesn't start until first finishes).. This works okay, objects move relatively smooth etc..
>> 
>> However
>> 
>> The dictionary states I can use the locksMoves property to force them to both move at once by setting it true before issuing the moves then setting it to false after they have both been issued. I have tried this solution but it's not moving them, rather just one jump' to the final location...
>> 
>> Any suggestions on what may be happening or suggestions on alternative solutions?
>> 
>> 
>> 
>> 
>> 
>> Sent from my iPhone
>> COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications.
>> 
>> 
>> 
>> _______________________________________________
>> 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
> 
> _______________________________________________
> 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
> 
> 
> COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications.
> 
> 
> 
> _______________________________________________
> 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