Hot and throbbing.
Posted: Mon May 25, 2015 11:10 am
One of the kids I teach asked how to make an image resize when the mouse was over it.
So I went, inevitably, for the easiest solution I could think of with this script
inside the image:
on mouseEnter
set the width of me to 150
set the height of me to 150
end mouseEnter
on mouseLeave
set the width of me to 120
set the height of me to 120
end mouseLeave
The kid was perfectly happy with that.
HOWEVER . . .
I noticed something interesting:
If the image is UNLOCKED it expands and contracts from it centre, while
if the image is LOCKED it expands and contracts from its top-left hand corner.
I don't know if this is documented anywhere (???) .
AND, I wonder if there is a way to force the image to expand and contract from another of its corners?
So I went, inevitably, for the easiest solution I could think of with this script
inside the image:
on mouseEnter
set the width of me to 150
set the height of me to 150
end mouseEnter
on mouseLeave
set the width of me to 120
set the height of me to 120
end mouseLeave
The kid was perfectly happy with that.
HOWEVER . . .
I noticed something interesting:
If the image is UNLOCKED it expands and contracts from it centre, while
if the image is LOCKED it expands and contracts from its top-left hand corner.
I don't know if this is documented anywhere (???) .
AND, I wonder if there is a way to force the image to expand and contract from another of its corners?