Rename object

Richmond richmondmathewson at gmail.com
Thu Jul 4 13:26:07 EDT 2019


Almost completely 'done'. 8-)

Where would I be without your help throughout the years (well, about 18 
at my last count)?

No! Don't answer that one; it's rhetorical.

Richmond.

On 4.07.19 15:26, Klaus major-k via use-livecode wrote:
> 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
>
>
> _______________________________________________
> 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