Cass_au
10-30-2007, 10:54 AM
Hey!!
I'd like to know how to make an image/button blend in on mouseenter...
im using lingo for school and im not sure how its done :s
i have this script from my tute:
property mySprite
property isFadeIn
on beginSprite me
mySprite = sprite(me.spriteNum)
isFadeIn = false
end
on mouseenter me
if(isFadeIn = false) then
mySprite.blend = mySprite.blend - 2
if (mySprite.blend = 0) then
isFadeIn = true
end if
else
mySprite.blend = mySprite.blend + 2
if (mySprite.blend = 100) then
isFadeIn = false
end if
end if
end
if i change mouseenter to enterframe it will blend the way i want it to, but when i set it so that the blending only happens when mouseenter, it doesnt work :s
please help guys!
I'd like to know how to make an image/button blend in on mouseenter...
im using lingo for school and im not sure how its done :s
i have this script from my tute:
property mySprite
property isFadeIn
on beginSprite me
mySprite = sprite(me.spriteNum)
isFadeIn = false
end
on mouseenter me
if(isFadeIn = false) then
mySprite.blend = mySprite.blend - 2
if (mySprite.blend = 0) then
isFadeIn = true
end if
else
mySprite.blend = mySprite.blend + 2
if (mySprite.blend = 100) then
isFadeIn = false
end if
end if
end
if i change mouseenter to enterframe it will blend the way i want it to, but when i set it so that the blending only happens when mouseenter, it doesnt work :s
please help guys!