Hi Richmond,

> Am 04.07.2019 um 14:14 schrieb Richmond via use-livecode 
> <use-livecode@lists.runrev.com>:
> 
> However . . .
> 
> If I do this:
> 
> onmouseUp
> setthelockScreentotrue
> setthemoveSpeedto65000
> putitem 1 ofthemouseLocintoML1
> putitem 2 ofthemouseLocintoML2
> moveimg "mill" toML1, ML2
> copyimg "mill" togroup"map"
> setthenameoflast image to("mill" & ML1 & "," & ML2)
> setthemoveSpeedto200
> setthelockScreentofalse
> endmouseUp
> 
> The "funny" thing is that the image that gets renamed is NOT the clone in the 
> group, but
> the original one.

Hey, you did not mention GROUP in your first posting! 8-)

The groups layer is obviously LOWER that the one of your image-to-be-copied in 
this case,
so just add:
...
set the name of last image OF GRP "map" to ("mill" & ML1 & "," & ML2)
...
and you are done.

> Richmond.

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


_______________________________________________
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

Reply via email to