home *** CD-ROM | disk | FTP | other *** search
- property pGame, pUrl, pScoreField, pScore, pScoreMod
- global key1, newScoreKey, gCheater, GAME_ID, CLIENT_ID
-
- on getPropertyDescriptionList me
- propList = [:]
- addProp(propList, #pGame, [#comment: "Game variable: ", #format: #string, #default: EMPTY])
- addProp(propList, #pUrl, [#comment: "Absolute URL to Cold Fusion script: ", #format: #string, #default: "http://"])
- addProp(propList, #pScoreField, [#comment: "Score field: ", #format: #text, #default: EMPTY])
- return propList
- end
-
- on mouseUp me
- pScore = pScoreField.text
- postMe(me)
- setScoreParams(me)
- cursor(-1)
- end
-
- on mouseDown me
- puppetSound(2, "s_mouseover")
- end
-
- on setScoreParams
- tempScore = getScore()
- pScoreMod = (tempScore + (3 * GAME_ID)) mod 13579
- key2 = (4 * (pScoreMod * pScoreMod)) + (23 * pScoreMod) + (key1 * 54)
- key2 = key2 mod 1000000
- t = "&score=" & tempScore
- t = t & "&key1=" & key1
- t = t & "&key2=" & key2
- return t
- end
-
- on postMe me
- if gCheater = 0 then
- put pUrl & "gameID=" & GAME_ID & "&clientID=" & CLIENT_ID & setScoreParams(me)
- gsOpenURL(pUrl & "gameID=" & GAME_ID & "&clientID=" & CLIENT_ID & setScoreParams(me))
- end if
- end
-
- on mouseEnter me
- puppetSound(2, "s_mouseover")
- cursor(280)
- end
-
- on mouseLeave me
- cursor(-1)
- end
-