home *** CD-ROM | disk | FTP | other *** search
- property Active, sp, pfadeMode, pfadeVal, pFadeMin, pfadeSpeed
- global currentThumbStart, currentSection, mainIndex, backEnabled
-
- on mouseUp me
- if backEnabled = 1 then
- sprite(me.spriteNum + 1).color = rgb(0, 0, 0)
- currentThumbStart = currentThumbStart - 6
- showThumbnails(currentThumbStart, currentSection)
- sp.blend = pFadeMin
- cursor(-1)
- end if
- end
-
- on beginSprite me
- sp = sprite(me.spriteNum)
- pfadeMode = 0
- pFadeMin = 60
- pfadeSpeed = 8
- pfadeVal = pFadeMin
- sp.blend = pfadeVal
- Active = 1
- end
-
- on mouseEnter me
- if backEnabled = 1 then
- cursor(280)
- sprite(me.spriteNum + 1).color = rgb(255, 255, 255)
- if pfadeMode < 1 then
- pfadeMode = 1
- end if
- end if
- end
-
- on mouseLeave me
- if backEnabled = 1 then
- cursor(-1)
- sprite(me.spriteNum + 1).color = rgb(0, 0, 0)
- if pfadeMode < 2 then
- pfadeMode = 2
- end if
- end if
- end
-
- on enterFrame me
- if pfadeMode > 0 then
- if pfadeMode = 2 then
- if pfadeVal > pFadeMin then
- pfadeVal = pfadeVal - pfadeSpeed
- else
- pfadeVal = pFadeMin
- pfadeMode = 0
- end if
- else
- if pfadeVal < 100 then
- pfadeVal = pfadeVal + pfadeSpeed
- else
- pfadeVal = 100
- pfadeMode = 0
- end if
- end if
- sp.blend = pfadeVal
- end if
- end
-