|
|
|
Quick mouseover
Added on 9/13/2002
|
Need a mouseover fast? Only got one button graphic with no rollovers? Try this ... apply the following behaviour to a sprite that has a CENTRED regpoint. TaDa! Quick mouseover!
property storew,storeh,spritenum
on beginsprite
storew=sprite(spritenum).width
storeh=sprite(spritenum).height
end
on mousewithin
if NOT (the mousedown) then
sprite(spritenum).width=storew*1.2
sprite(spritenum).height=storeh*1.2
end if
end
on mouseleave
if sprite(spritenum).width<>storew then
sprite(spritenum).width=storew
sprite(spritenum).height=storeh
end if
end
on mousedown
sprite(spritenum).width=storew*0.9
sprite(spritenum).height=storeh*0.9
end
|
|