home *** CD-ROM | disk | FTP | other *** search
- -- hilites the page number on rollOver
- on pageRollOver first, last
- repeat with n = first to last
- if rollover(n) then
- puppetSprite n, TRUE
- set the ink of sprite (n) to 4
- else
- puppetSprite n, FALSE
- end if
- end repeat
- end whichPage
-
- -------------------------**************************---------------------------
-
- on hyperLinks sp, inc
- -- sp = the sprite containing the first hyperlink
- -- inc = the number of hyperlinks
- -- i.e.
- -- sprites 6->10 contain the hyperlink text
- -- sprites 11->15 contain the hyperlink icon
- -- sprites 16->20 contain the hyperlink images
- -- SHAREBUTTON [11, 12, 13, 14, 15]
- repeat with n = sp to (sp+inc-1)
- set the visible of sprite (n+inc) to rollover(n)
- end repeat
- set TEST = 0
- repeat with n = (sp+(inc*2)) to (sp+(inc*2)+inc-1)
- set TEST = TEST + the visible of sprite n
- end repeat
- if TEST then
- repeat with n = (sp+inc) to (sp+(inc*2)-1)
- set the visible of sprite n to FALSE
- end repeat
- end if
- set list = []
- repeat with i = inc to 2*inc-1
- append list, sp+i
- end repeat
- SHAREBUTTON list
- end hyperLinks
-
-
- on randomizePicts sum
- set tempList = []
- set myList = []
- repeat with i = 1 to sum
- append tempList, i
- end repeat
- set the randomSeed to the ticks
- repeat with i = 1 to sum
- set a = random(count(tempList))
- set x = getAt(tempList, a)
- deleteAt tempList, a
- append myList, x
- end repeat
- return(myList)
- end randomizePicts
-
- on getItem mylist
- set x = getAt(myList, 1)
- deleteAt myList, 1
- return(x)
- end getItem
-