home *** CD-ROM | disk | FTP | other *** search
/ Rooie Oortjes 4 / RO4_CD.bin / contest.dxr / 00007.ls < prev    next >
Encoding:
Text File  |  1998-09-18  |  816 b   |  26 lines

  1. on exitFrame
  2.   if (the mouseH > 127) and (the mouseH < 514) then
  3.     set the visible of sprite 2 to 0
  4.     set the visible of sprite 3 to 0
  5.   end if
  6.   if the lineCount of member "field1" >= 5 then
  7.     set str to the text of member "field1"
  8.     set str to chars(str, 1, the number of chars in str - 1)
  9.     set the text of member "field1" to str
  10.     puppetSound(1, "ding")
  11.   end if
  12.   if the lineCount of member "field2" >= 3 then
  13.     set str to the text of member "field2"
  14.     set str to chars(str, 1, the number of chars in str - 1)
  15.     set the text of member "field2" to str
  16.     puppetSound(1, "ding")
  17.   end if
  18.   if random(1000) < 10 then
  19.     set randsoundmember to the number of member "gig1" + random(9) - 1
  20.     if not soundBusy(1) then
  21.       puppetSound(1, randsoundmember)
  22.     end if
  23.   end if
  24.   go(the frame)
  25. end
  26.