on beginSprite me
--
if blend_end < blend_start then
blend_speed = blend_speed *(-1)
end if
--
theGap = abs(blend_end) - abs(blend_start)
theGap = abs(theGap)
theMod = theGap mod blend_speed
repeat while theMod <> 0
blend_speed = blend_speed -1
theMod = theGap mod blend_speed
end repeat
mySelf = sprite(me.spriteNum)
mySelf.blend = blend_start
end
on exitFrame me
if the rollover = me.spriteNum then
if mySelf.blend <> blend_end then
mySelf.blend = mySelf.blend +blend_speed
end if
else
if mySelf.blend <> blend_start then
mySelf.blend = mySelf.blend -blend_speed
end if
end if