home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global SoundActive, gProgrmPathOnHD, OnceCheck, Navigate, RecipeNum
- if SoundActive and (soundBusy(1) = 0) then
- sound playFile 1, gProgrmPathOnHD & "drinks"
- end if
- set NonVec to [148, 127, 132, 131, 128, 129, 133, 130]
- if OnceCheck = 0 then
- cursor(-1)
- set OnceCheck to 1
- repeat with i = 3 to 10
- 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
- if Navigate = "non-alco" then
- set x to getPos(NonVec, RecipeNum)
- if x > 0 then
- set the member of sprite (x + 2) to member ("non" & x) of castLib "drinks"
- end if
- end if
- end if
- set chosen to getPos(NonVec, RecipeNum)
- repeat with i = 3 to 10
- if the member of sprite i = "origin" = 0 then
- if (rollOver(i) = 0) and not ((Navigate = "non-alco") and (i = (chosen + 2))) then
- set the member of sprite i to member "origin"
- end if
- end if
- end repeat
- go(the frame)
- end
-
- on mouseDown
- global checkPress, Navigate
- set checkPress to the clickOn
- set bDown to the clickOn
- if (bDown > 2) and (bDown < 11) then
- if Navigate = "non-alco" then
- repeat with i = 3 to 10
- if rollOver(i) = 0 then
- set the member of sprite i to member "origin"
- end if
- end repeat
- end if
- set the member of sprite bDown to member ("non" & bDown - 2) of castLib "drinks"
- else
- if bDown > 41 then
- buttonPressedDown(bDown, "non-alco")
- end if
- end if
- end
-
- on mouseUp
- global checkPress, RecipeNum, Choice
- set checkPress2 to the clickOn
- if checkPress = checkPress2 then
- set bUp to the clickOn
- if (bUp > 2) and (bUp < 11) then
- clearPuppets()
- set NonVec to [148, 127, 132, 131, 128, 129, 133, 130]
- set RecipeNum to getAt(NonVec, bUp - 2)
- set x to the number of lines in field "backField"
- put marker(0) into line x + 1 of field "backField"
- set Choice to line RecipeNum of field "names"
- go(marker("non-alcoP"))
- else
- if bUp > 41 then
- buttonPressedUp(bUp, "non-alco")
- end if
- end if
- end if
- end
-