home *** CD-ROM | disk | FTP | other *** search
- property pSprite, spriteNum, pnorm, pExpo, pLast, pFreq, pFlash
-
- on beginSprite me
- pSprite = sprite(spriteNum)
- pnorm = pSprite.member
- pExpo = member("3men_2")
- pLast = the ticks + 50
- pFreq = 400
- pFlash = 1
- end
-
- on enterFrame me
- if not pFlash then
- if the ticks > (pLast + pFreq) then
- if (random(3) mod 2) = 0 then
- puppetSound(7, "opencoat")
- pSprite.member = pExpo
- pLast = the ticks
- pFlash = 1
- end if
- end if
- else
- if the ticks > (pLast + (pFreq / 4)) then
- if (random(2) mod 2) = 0 then
- pSprite.member = pnorm
- pLast = the ticks
- pFlash = 0
- end if
- end if
- end if
- end
-