home *** CD-ROM | disk | FTP | other *** search
- property Sp, fulb, stb, pmode, ic
-
- on beginSprite me
- Sp = sprite(me.spriteNum)
- fulb = 100
- stb = 60
- Sp.blend = stb
- pmode = "off"
- end
-
- on mouseEnter me
- cursor(280)
- ic = 0
- pmode = "in"
- end
-
- on mouseLeave me
- cursor(-1)
- ic = 0
- pmode = "out"
- end
-
- on exitFrame me
- case pmode of
- "in":
- ic = ic + 1
- Sp.blend = stb + ic
- if Sp.blend >= fulb then
- Sp.blend = fulb
- pmode = "on"
- end if
- "out":
- ic = ic + 1
- Sp.blend = fulb - ic
- if Sp.blend <= stb then
- Sp.blend = stb
- pmode = "off"
- end if
- end case
- end
-