home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global SoundActive, gProgrmPathOnHD, OnceCheck
- if SoundActive and (soundBusy(1) = 0) then
- sound playFile 1, gProgrmPathOnHD & "hang"
- end if
- if OnceCheck = 0 then
- cursor(-1)
- set OnceCheck to 1
- repeat with i = 3 to 5
- set the cursor of sprite i to [34, 35]
- puppetSprite(i, 1)
- end repeat
- repeat with i = 42 to 48
- puppetSprite(i, 1)
- end repeat
- end if
- go(the frame)
- end
-
- on mouseDown
- global checkPress
- set checkPress to the clickOn
- set bDown to the clickOn
- if (bDown = 3) or (bDown = 4) or (bDown = 5) then
- repeat with i = 3 to 5
- if i = bDown then
- set the member of sprite i to member ("hang" & bDown - 2)
- next repeat
- end if
- set the member of sprite i to member "origin"
- end repeat
- else
- if bDown > 41 then
- buttonPressedDown(bDown, "hangOver")
- end if
- end if
- end
-
- on mouseUp
- global checkPress
- set checkPress2 to the clickOn
- if checkPress = checkPress2 then
- set bUp to the clickOn
- if (bUp = 3) or (bUp = 4) or (bUp = 5) then
- set the visible of sprite 6 to 0
- set the visible of sprite 7 to 0
- set the visible of sprite 8 to 0
- set the visible of sprite (bUp + 3) to 1
- else
- if bUp > 41 then
- buttonPressedUp(bUp, "hangOver")
- end if
- end if
- end if
- end
-