Losing a Group's memory

Scott Rossi scott at tactilemedia.com
Sat Feb 28 14:04:45 EST 2004


On 2/28/04 10:46 AM, "Graham Samuel" <livfoss at blueyonder.co.uk> wrote:

> I have a group consisting of a couple  of images which I distort from
> within a handler in order to give a simple animation effect of a shutter
> shutting. This works fine, but when I edit the group and change the size of
> one or more of the individual images (for example if I change the height of
> one of them) and stop editing and go back to my 'distorting' behaviour, the
> image(s) reverts to its/their original size. Likewise, if I alter the
> height of the whole group, it also reverts to the original height during
> the shutter animation process, although there is nothing in the code of the
> handler to make it do this.
> 
> This must mean that the group retains a memory of the size of its
> components. I don't want this - if I want the height changed, I want it to
> stay that way - so I need my group to 'forget' this original-size
> information. Does anyone know if there is any way of doing this? If not, I
> will have to re-craft my images in some kind of image editor and replace
> the ones I have in the group now, which to say the least is a tedious process.

You probably need to set the lockLoc of the images to true.  Groups
automatically resize to display their entire contents.  If you lock the
group, you'll cut off the display of anything within the group, so leave the
group as is and try locking the images.

Regards,

Scott Rossi
Creative Director
Tactile Media, Development & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com



More information about the use-livecode mailing list