Scripting the creation of a new image objects
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Scripting the creation of a new image objects
I need to create a number of new images objects on the fly that all share the same properties (image, scripts etc) as an image already on the card. What's the best way of doing that?
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
Re: Scripting the creation of a new image objects
Hi...
Look in the dictionary under 'templateImage. Use the templateImage keyword to set up default properties to be used for any new images objects you want to create. Then the images you create will incorporate the properties that you have set...
be well
Dixie
Look in the dictionary under 'templateImage. Use the templateImage keyword to set up default properties to be used for any new images objects you want to create. Then the images you create will incorporate the properties that you have set...
be well
Dixie
Re: Scripting the creation of a new image objects
Hi Jellicle,
You can also clone an image and rename it on the fly
Look at clone entry of the dictionary of LC
Best
Jean-marc
You can also clone an image and rename it on the fly
Look at clone entry of the dictionary of LC
Best
Jean-marc
https://alternatic.ch
Re: Scripting the creation of a new image objects
Thanks so much 

14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.