Click to See Complete Forum and Search --> : Some Lingo help please!! Desperate!!


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!

dtm32236
10-30-2007, 12:09 PM
i've never seen anyone post a question about Lingo here before - hopefully you'll get an answer, but I'm going to suggest posting this in a Director / Lingo dedicated Forum:

http://director-online.com/forums/
http://www.tek-tips.com/threadminder.cfm?pid=247
http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=11

to list a few...