home *** CD-ROM | disk | FTP | other *** search
/ Blender Volume 2 #3 / Blender_2_3.iso / BLENDER / FILES / CONTEST.DIR / 00027.ls < prev    next >
Encoding:
Text File  |  1996-04-01  |  1.5 KB  |  46 lines

  1. on pushEmailButton
  2.   global textStringBig, textStringLittle, trackList
  3.   writeFile()
  4.   if the machineType = 256 then
  5.     openXLib("FileIo")
  6.   end if
  7.   set textStringBig to "PLEASE E-MAIL THIS ENTRY FORM TO FREESTUFF@BLENDER.COM" & RETURN & the text of cast 5 & RETURN & the text of cast 6 & RETURN & the text of cast 7 & RETURN & the text of cast 8 & RETURN & the text of cast 9 & RETURN & RETURN
  8.   createContestForm()
  9.   set writeObj to FileIO(mnew, "?write", ".CONTEST")
  10.   if objectp(writeObj) then
  11.     writeObj(mWriteString, textStringBig & textStringLittle)
  12.   end if
  13.   if objectp(writeObj) then
  14.     writeObj(mdispose)
  15.   end if
  16.   alert("Cut and paste the file you just saved into your e-Mailer and send it to FreeStuff@Blender.com!")
  17.   if the machineType = 256 then
  18.     closeXLib("FileIo")
  19.   end if
  20. end
  21.  
  22. on createContestForm
  23.   global trackList, textStringLittle
  24.   if the machineType = 256 then
  25.     openXLib("FileIo")
  26.   end if
  27.   set prefsPath to findPath()
  28.   set readObj to FileIO(mnew, "read", prefsPath & "Blendprf")
  29.   set thisLine to readObj(mReadLine)
  30.   set lineCount to 1
  31.   set OUTPUT to EMPTY
  32.   repeat while (thisLine <> EMPTY) and (lineCount <= 50)
  33.     set OUTPUT to OUTPUT & thisLine
  34.     set thisLine to readObj(mReadLine)
  35.     set lineCount to lineCount + 1
  36.   end repeat
  37.   if objectp(readObj) then
  38.     readObj(mdispose)
  39.   end if
  40.   if the machineType = 256 then
  41.     closeXLib("FileIo")
  42.   end if
  43.   set disclaimer to "The following information tracks your viewing of Blender. It is used to improve the product."
  44.   set textStringLittle to disclaimer & RETURN & RETURN & OUTPUT
  45. end
  46.