home *** CD-ROM | disk | FTP | other *** search
- property pScore, pDisplay
-
- on new me, theScore, theDisplay
- me.pScore = theScore
- me.pDisplay = theDisplay
- return me
- end
-
- on mAdjustScore me, aValue
- pScore = pScore + aValue
- me._updateDisplay()
- end
-
- on _updateDisplay me
- pDisplay.text = string(pScore)
- end
-