home *** CD-ROM | disk | FTP | other *** search
- property pSpriteNum, pbuttonList, pbuttonUp, pbuttonDown, pButtonUpSpanish, pButtonDownSpanish, pAction, pSoundOver, pSoundDown, pSoundOverOn, pSoundDownOn, pTicks
- global gPlay, key1, gNewBanner, gPlayAgain, ground, gNetID, gCheckPing, gClickOnOnce, gRadio, isShockwave, isMac, gCookiePath, gCheckLegalCookie, gKewlboxFolder, gOnline, gMacSound, gIntroPlayed
-
- on getPropertyDescriptionList me
- pbuttonList = [:]
- addProp(pbuttonList, #pbuttonUp, [#comment: "Button Up State: ", #format: #bitmap, #default: EMPTY])
- addProp(pbuttonList, #pbuttonDown, [#comment: "Button Down State: ", #format: #bitmap, #default: EMPTY])
- addProp(pbuttonList, #pButtonUpSpanish, [#comment: "Button Up Spanish State: ", #format: #bitmap, #default: EMPTY])
- addProp(pbuttonList, #pButtonDownSpanish, [#comment: "Button Down Spanish State: ", #format: #bitmap, #default: EMPTY])
- addProp(pbuttonList, #pAction, [#comment: "Button Action: ", #format: #string, #default: EMPTY])
- addProp(pbuttonList, #pSoundOver, [#comment: "Button RollOver Sound File: ", #format: #sound, #default: EMPTY])
- addProp(pbuttonList, #pSoundOverOn, [#comment: "Button RollOver Sound On/Off", #format: #boolean, #default: 1])
- addProp(pbuttonList, #pSoundDown, [#comment: "Button Down Sound File: ", #format: #sound, #default: EMPTY])
- addProp(pbuttonList, #pSoundDownOn, [#comment: "Button Down Sound On/Off", #format: #boolean, #default: 1])
- return pbuttonList
- end
-
- on beginSprite me
- pSpriteNum = me.spriteNum
- pTicks = 0
- gNetID = 0
- gCheckPing = 0
- end
-
- on mouseEnter me
- sprite(the currentSpriteNum).cursor = 280
- set the member of sprite the currentSpriteNum to member(pbuttonDown)
- if pSoundOverOn = 1 then
- puppetSound(2, pSoundOver)
- end if
- end
-
- on mouseLeave me
- set the member of sprite the currentSpriteNum to member(pbuttonUp)
- if pAction = "End Game" then
- sprite(the currentSpriteNum).cursor = 280
- else
- sprite(the currentSpriteNum).cursor = -1
- end if
- end
-
- on mouseUp me
- case pAction of
- "Play":
- if gPlay = 1 then
- setScore(0)
- put getScore() into member "t_TotalScore"
- put EMPTY into member "t_MessageWindow"
- go("SetUp")
- else
- gPlay = 1
- if gCheckLegalCookie = "1" then
- setScore(0)
- put getScore() into member "t_TotalScore"
- put EMPTY into member "t_MessageWindow"
- go("SetUp")
- else
- go("Legal")
- end if
- end if
- if pSoundDownOn = 1 then
- puppetSound(3, pSoundDown)
- end if
- "Play Again":
- if gPlay = 1 then
- setScore(0)
- put getScore() into member "t_TotalScore"
- gPlayAgain = 1
- gRadio = 0
- put EMPTY into member "t_MessageWindow"
- put "1" into member "t_Level"
- go("SetUp")
- else
- gPlay = 1
- if gCheckLegalCookie = "1" then
- setScore(0)
- put getScore() into member "t_TotalScore"
- gPlayAgain = 1
- gRadio = 0
- put EMPTY into member "t_MessageWindow"
- put "1" into member "t_Level"
- else
- go("Legal")
- end if
- end if
- set the soundLevel to gMacSound
- sound(8).play(member("goofy"))
- if pSoundDownOn = 1 then
- puppetSound(3, pSoundDown)
- end if
- "Rules":
- go("Rules")
- if pSoundDownOn = 1 then
- puppetSound(3, pSoundDown)
- end if
- "Quit":
- ping2()
- sound(8).fadeOut()
- go("End")
- if pSoundDownOn = 1 then
- puppetSound(3, pSoundDown)
- end if
- "Submit Email":
- submitEmail()
- if pSoundDownOn = 1 then
- puppetSound(3, pSoundDown)
- end if
- "Send Score":
- postScore()
- if pSoundDownOn = 1 then
- puppetSound(3, pSoundDown)
- end if
- "Ok":
- go("Main")
- if pSoundDownOn = 1 then
- puppetSound(3, pSoundDown)
- end if
- "Backpage":
- key1 = random(999999)
- sound(8).stop()
- put EMPTY into member "t_MessageWindow"
- go("Backpage")
- if pSoundDownOn = 1 then
- puppetSound(2, pSoundDown)
- end if
- "Web":
- bdWebCommunicate("http://www.kewlbox.com", 1)
- if pSoundDownOn = 1 then
- puppetSound(2, pSoundDown)
- end if
- "Approve":
- if gPlay = 1 then
- go("SetUp")
- else
- go("Main")
- end if
- if pSoundDownOn = 1 then
- puppetSound(3, pSoundDown)
- end if
- "Disapprove":
- sound(8).stop()
- gPlay = 0
- go("Backpage")
- if pSoundDownOn = 1 then
- puppetSound(3, pSoundDown)
- end if
- "English":
- "Spanish":
- "YesShortcut":
- fxObj = xtra("FileXtra3").new()
- gameName = the movieName
- gamepath = the moviePath
- if isMac = 1 then
- desktop = fxObj.fx_FolderGetSpecialPath("kDesktopFolderType")
- fxObj.fx_LinkCreate(gamepath & gameName, desktop)
- fxObj.fx_FileRename(desktop & gameName & " alias", desktop & gameName)
- else
- desktop = fxObj.fx_FolderGetSpecialPath("CSIDL_DESKTOPDIRECTORY")
- programs = fxObj.fx_FolderGetSpecialPath("CSIDL_COMMON_PROGRAMS")
- fxObj.fx_LinkCreate(gamepath & gameName, desktop)
- fxObj.fx_FileRename(desktop & "Shortcut to " & gameName & ".lnk", desktop & gameName & ".lnk")
- if gKewlboxFolder = 0 then
- fxObj.fx_FolderCreate(programs & "Kewlbox Games")
- end if
- fxObj.fx_LinkCreate(gamepath & gameName, programs & "Kewlbox Games")
- fxObj.fx_FileRename(programs & "Kewlbox Games\" & "Shortcut to " & gameName & ".lnk", programs & "Kewlbox Games\" & gameName & ".lnk")
- end if
- fxObj = 0
- member("f_gameCookie").item[1] = 1
- if isMac = 1 then
- saveText(member("f_gameCookie").text, gCookiePath & the movieName && "Preferences", 0, 0)
- else
- saveText(member("f_gameCookie").text, gCookiePath & the movieName & ".txt", 0, 0)
- end if
- go("Main")
- if pSoundDownOn = 1 then
- puppetSound(3, pSoundDown)
- end if
- "NoShortcut":
- go("Main")
- if pSoundDownOn = 1 then
- puppetSound(3, pSoundDown)
- end if
- end case
- xxxxx = the currentSpriteNum
- sprite(the currentSpriteNum).cursor = -1
- end
-