主题:  鼠标放上,图片渐显.......?

xiaobeizhu

职务:普通成员
等级:1
金币:0.0
发贴:2
#12006/6/21 17:18:23
如题↑ 怎么实现??
blend吗?怎么能让图片渐渐显示出来呢?



Super ChiCk

职务:版主
等级:5
金币:15.0
发贴:3502
#22006/6/21 22:46:17
blend



三仙半

职务:普通成员
等级:1
金币:0.0
发贴:241
#32006/6/24 13:14:52
on mouseEnter me
repeat with i = 0 to 100
sprite(me.spriteNum).blend = i
updateStage
pauseByMS(10)
end repeat
end
on mouseLeave me
repeat with i = 100 down to 0
sprite(me.spriteNum).blend = i
updateStage
pauseByMS(10)
end repeat
end
on pauseByMs howTime
s_Time = _system.milliseconds
repeat while _system.milliseconds - s_Time < howTime
--noThing
end repeat
end


闭起眼睛看人生