home *** CD-ROM | disk | FTP | other *** search
- on button
- set ch to clickOn()
- set cname to item 1 of the name of cast the castNum of sprite ch
- set the castNum of sprite ch to the number of member (cname & ",on")
- updateStage()
- wait(5)
- repeat while the stillDown
- if rollOver(ch) then
- set the castNum of sprite ch to the number of member (cname & ",on")
- updateStage()
- next repeat
- end if
- set the castNum of sprite ch to the number of member (cname & ",off")
- updateStage()
- end repeat
- set the castNum of sprite ch to the number of member (cname & ",off")
- updateStage()
- end
-
- on visbleon n, m
- repeat with i = n to m
- set the visible of sprite i to 1
- end repeat
- end
-
- on visbleoff n, m
- repeat with i = n to m
- set the visible of sprite i to 0
- end repeat
- end
-
- on puppetspon n, m
- repeat with i = n to m
- puppetSprite(i, 1)
- end repeat
- end
-
- on puppetspoff n, m
- repeat with i = n to m
- puppetSprite(i, 0)
- end repeat
- end
-
- on chcastnm name, n, m
- set t to 1
- repeat with i = n to m
- set the name of cast i to name & "," & t
- set t to t + 1
- end repeat
- end
-
- on place spnum, castno, inkno, h, v
- set the type of sprite spnum to 1
- set the ink of sprite spnum to inkno
- set the foreColor of sprite spnum to 255
- set the backColor of sprite spnum to 0
- set the castNum of sprite spnum to castno
- set the loc of sprite spnum to point(h, v)
- updateStage()
- end
-
- on notupdateplace spnum, castno, inkno, h, v
- set the type of sprite spnum to 1
- set the ink of sprite spnum to inkno
- set the foreColor of sprite spnum to 255
- set the backColor of sprite spnum to 0
- set the castNum of sprite spnum to castno
- set the loc of sprite spnum to point(h, v)
- end
-
- on wait t
- set etime to ticks() + t
- repeat while etime > ticks()
- nothing()
- end repeat
- end
-
- on setcastname name, s, e
- set list to ["1", "2", "3_3", "3_2", "3_1", "4_2", "4_1", "5"]
- repeat with i = s to e
- set cnt to i - s + 1
- if (cnt mod 2) = 1 then
- set sex to "MAN"
- else
- set sex to "WOMAN"
- end if
- set realcnt to getAt(list, 9 - ((cnt + 1) / 2))
- set the name of cast i to name & "," & sex & "," & realcnt
- end repeat
- end
-
- on changecursor type
- set yubino to the number of member type
- cursor([yubino, yubino + 1])
- end
-