home *** CD-ROM | disk | FTP | other *** search
/ Cocktail Hour / image.iso / COCKTAIL.DIR / objects_43.ls < prev    next >
Encoding:
Text File  |  1997-03-05  |  820 b   |  22 lines

  1. on mouseUp
  2.   global Choice
  3.   if the visible of sprite 17 then
  4.     set lUp to the mouseLine
  5.     if the mouseLine > -1 then
  6.       set currLine to EMPTY
  7.       repeat with i = 1 to the number of words in line lUp of the text of member "tarInfo2Temp"
  8.         set currLine to currLine && word i of line lUp of the text of member "tarInfo2Temp"
  9.       end repeat
  10.       set wordX to word 1 of currLine
  11.       set linePos to offset(wordX, the text of member "tarInfo2")
  12.       set prepPos to offset("Preparation", the text of member "tarInfo2")
  13.       if linePos < prepPos then
  14.         set x1 to the number of lines in field "shop1"
  15.         set x2 to the number of lines in field "shop2"
  16.         put Choice into line x1 + 1 of field "shop1"
  17.         put currLine into line x2 + 1 of field "shop2"
  18.       end if
  19.     end if
  20.   end if
  21. end
  22.