home *** CD-ROM | disk | FTP | other *** search
- global gpressed, gserviceList, lastSprite
-
- on exitFrame
- go(the frame)
- end
-
- on idle
- repeat with n = 2 to 12
- if rollOver(n) then
- if (n <> lastSprite) and (the mouseCast = the castNum of sprite n) then
- set lastSprite to n
- set whichtitle to getAt(gserviceList, n - 1) && "title"
- set the castNum of sprite 17 to the number of cast whichtitle
- if n <> gpressed then
- puppetSprite(n, 1)
- set the castNum of sprite n to the number of cast ("Button " & string(n - 1) && "lit")
- end if
- end if
- exit repeat
- end if
- end repeat
- repeat with n = 2 to 12
- if (n <> gpressed) and (n <> lastSprite) then
- puppetSprite(n, 0)
- end if
- end repeat
- updateStage()
- end
-