home *** CD-ROM | disk | FTP | other *** search
- on HideDBCopy
- global TempMouseDown, TempMouseUp, TempKeyDown, ButtonsActive
- cursor(4)
- if not voidp(TempMouseDown) then
- set the mouseDownScript to TempMouseDown
- end if
- if not voidp(TempMouseUp) then
- set the mouseUpScript to TempMouseUp
- end if
- if not voidp(TempKeyDown) then
- set the keyDownScript to TempKeyDown
- end if
- set ButtonsActive to 1
- set the visible of sprite 31 to 0
- cursor(-1)
- end
-
- on ShowDBCopy
- global TempMouseDown, TempMouseUp, TempKeyDown, ButtonsActive
- set TempMouseDown to the mouseDownScript
- set TempMouseUp to the mouseUpScript
- set TempKeyDown to the keyDownScript
- set the mouseDownScript to "DBUp"
- set the mouseUpScript to "HideDBCopy"
- set the keyDownScript to "DBKeyCheck"
- set ButtonsActive to 0
- set the visible of sprite 31 to 1
- cursor(-1)
- end
-
- on DBCopyPrep
- set the puppet of sprite 31 to 1
- set the castNum of sprite 31 to the number of member "DBCopy"
- end
-
- on Copy
- set Temp to the castNum of sprite 3
- put the text of cast Temp & the text of cast (Temp - 300) into field 300
- copyToClipBoard(cast 300)
- ShowDBCopy()
- end
-
- on DBUp
- dontPassEvent()
- end
-
- on DBKeyCheck
- put the key
- if the key = RETURN then
- HideDBCopy()
- else
- pass()
- end if
- end
-