home *** CD-ROM | disk | FTP | other *** search
- on judgeflash
- if rollOver(5) then
- flashbutton(5)
- else
- if rollOver(6) then
- flashbutton(6)
- else
- if rollOver(7) then
- flashbutton(7)
- else
- if rollOver(8) then
- flashbutton(8)
- else
- if rollOver(9) then
- flashbutton(9)
- else
- if rollOver(10) then
- flashbutton(10)
- else
- judgepuppet(5, 10)
- end if
- end if
- end if
- end if
- end if
- end if
- end
-
- on flashbutton spnum
- global gflashbuttonnum
- if (gflashbuttonnum <> spnum) and (gflashbuttonnum <> 0) then
- set ccname to item 1 of the name of cast the castNum of sprite gflashbuttonnum
- set the castNum of sprite gflashbuttonnum to the number of member (ccname & ",off")
- updateStage()
- puppetSprite(gflashbuttonnum, 0)
- updateStage()
- end if
- puppetSprite(spnum, 1)
- set cname to item 1 of the name of cast the castNum of sprite spnum
- set the castNum of sprite spnum to the number of member (cname & ",on")
- updateStage()
- set gflashbuttonnum to spnum
- end
-
- on judgepuppet startspnum, endspnum
- repeat with i = startspnum to endspnum
- if the puppet of sprite i = 1 then
- set ccname to item 1 of the name of cast the castNum of sprite i
- set the castNum of sprite i to the number of member (ccname & ",off")
- updateStage()
- puppetSprite(i, 0)
- updateStage()
- end if
- end repeat
- end
-
- on button soundname
- puppetSound(soundname)
- updateStage()
- set cname to item 1 of the name of cast the castNum of sprite clickOn()
- set the castNum of sprite clickOn() to the number of member (cname & ",on")
- updateStage()
- repeat with i = 1 to 10
- end repeat
- repeat while stillDown()
- if rollOver(clickOn()) then
- set the castNum of sprite clickOn() to the number of member (cname & ",on")
- updateStage()
- next repeat
- end if
- set the castNum of sprite clickOn() to the number of member (cname & ",off")
- updateStage()
- end repeat
- set the castNum of sprite clickOn() to the number of member (cname & ",off")
- updateStage()
- end
-
- on changecursor s, e
- repeat with i = s to e
- set the cursor of sprite i to [the number of member "cursor", the number of member "cursormask"]
- end repeat
- end
-
- on unchangecursor s, e
- repeat with i = s to e
- set the cursor of sprite i to -1
- end repeat
- end
-
- on wait sec
- global gwaittime, gflagwait
- if gflagwait = 0 then
- set gwaittime to the timer
- set gflagwait to 1
- end if
- if the timer < (gwaittime + (60 * sec)) then
- go(the frame)
- else
- set gflagwait to 0
- end if
- end
-