home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global theKeyLine, whLett
- if the doubleClick and (the mouseLine <> -1) then
- dontPassEvent()
- exit
- end if
- set lastIndexLine to -1
- set mLine to the mouseLine
- if mLine = -1 then
- pass()
- else
- set executeOnce to 0
- repeat while the stillDown or (executeOnce = 0)
- set mLine to the mouseLine
- if (mLine <> lastIndexLine) and (mLine <> -1) then
- set the foreColor of line lastIndexLine of field 11 to 255
- set the foreColor of line mLine of field 11 to 3
- set lastIndexLine to mLine
- set executeOnce to 1
- set theKeyLine to mLine
- put theKeyLine
- set findTemp to EMPTY
- set findTemp2 to EMPTY
- set findTemp to line mLine of field 12
- repeat with n = 1 to the number of items in findTemp
- put item n of findTemp & RETURN after findTemp2
- end repeat
- delete line the number of lines in findTemp2 of findTemp2
- set findTemp2 to findTemp2 & " " & RETURN
- set the text of field "result" to " "
- setHeadline("result")
- set the text of field "result" to string(findTemp2)
- moveIndicator(mLine)
- set the castNum of sprite 7 to 7
- updateStage()
- end if
- end repeat
- end if
- end
-