Rename object
Klaus major-k
klaus at major-k.de
Thu Jul 4 08:26:38 EDT 2019
Hi Richmond,
> Am 04.07.2019 um 14:14 schrieb Richmond via use-livecode <use-livecode at 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
klaus at major-k.de
More information about the use-livecode
mailing list