home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1998 December / WPCDEC98.ISO / dxrs / Sofwpc12.dxr / 00007.ls < prev    next >
Encoding:
Text File  |  1998-10-12  |  5.9 KB  |  123 lines

  1. on SOFSetupPreview
  2.   global SOFprevsetup, SOFx, whichsection, SOFinstallbutton, SOFinstall, SOFinstalldown, SOFty, platformtext, sizetext, SOFtemp, SOFtemp1, SOFtemp2, SOFtemp3
  3.   case SOFprevsetup of
  4.     1:
  5.       set SOFtemp to the name of the member of sprite the clickOn
  6.       set SOFtemp1 to the name of the member of sprite the clickOn & "_productinfo"
  7.       set the text of field "SOFtextbox" to the text of member SOFtemp1
  8.       set f to "1"
  9.       set SOFtemp2 to the name of the member of sprite the clickOn & "_prev_end"
  10.       set SOFtemp3 to the name of the member of sprite the clickOn & "_prev" & f
  11.       if the number of member SOFtemp3 = -1 then
  12.         set the member of sprite 4 to member SOFtemp2
  13.       else
  14.         set the member of sprite 4 to member SOFtemp3
  15.       end if
  16.       set the loc of sprite 4 to point(473, 155)
  17.       set VERSION1 to " "
  18.       set versionbox2 to "put the Version of the prog" & SOFx & " of " & whichsection & " into VERSION1"
  19.       do(versionbox2)
  20.       if VERSION1 = EMPTY then
  21.         set verofprog to SOFtemp
  22.       else
  23.         set verofprog to SOFtemp & " " & VERSION1
  24.       end if
  25.       set the member of sprite 40 to member "productnamebox"
  26.       set the ink of sprite 40 to 36
  27.       set the text of field "productnamebox" to verofprog
  28.       set the loc of sprite 40 to point(437, 322)
  29.       set INSTALLPLAYCOPY1 to "install1"
  30.       set INSTALLPLAYCOPY1PART2 to "inst"
  31.       set thisprog2 to "if the playinstcopy of the prog" & SOFx & " of " & whichsection & " = INSTALLPLAYCOPY1PART2 then set the member of sprite 41 to member INSTALLPLAYCOPY1"
  32.       do(thisprog2)
  33.       set INSTALLPLAYCOPY2 to "copy1"
  34.       set INSTALLPLAYCOPY2PART2 to "copy"
  35.       set thisprog3 to "if the playinstcopy of the prog" & SOFx & " of " & whichsection & " = INSTALLPLAYCOPY2PART2 then set the member of sprite 41 to member INSTALLPLAYCOPY2"
  36.       do(thisprog3)
  37.       set INSTALLPLAYCOPY3 to "play1"
  38.       set INSTALLPLAYCOPY3PART2 to "Play"
  39.       set thisprog4 to "if the playinstcopy of the prog" & SOFx & " of " & whichsection & " = INSTALLPLAYCOPY3PART2 then set the member of sprite 41 to member INSTALLPLAYCOPY3"
  40.       do(thisprog4)
  41.       set the loc of sprite 41 to point(532, 416)
  42.       set platformtext to "put the platform of the prog" & SOFx & " of " & whichsection & " into  SOFty"
  43.       do(platformtext)
  44.       set the text of field "platformbox" to SOFty
  45.       set sizetext to "put the size of the prog" & SOFx & " of " & whichsection & " into  SOFty"
  46.       do(sizetext)
  47.       set the text of field "sizebox" to SOFty & "MB of Hd space"
  48.       set categorytext to "put the category of the prog" & SOFx & " of " & whichsection & " into  SOFty"
  49.       do(categorytext)
  50.       set the text of field "categorybox" to SOFty
  51.       set SOFinstallbutton to the name of the member of sprite 41
  52.       set SOFinstall to SOFinstallbutton & "black"
  53.       set SOFinstalldown to SOFinstallbutton & "down"
  54.       set the member of sprite 90 to member "categorybox"
  55.       set the loc of sprite 90 to point(20, 35)
  56.       set the ink of sprite 90 to 36
  57.       set the member of sprite 50 to member "screenshotstag"
  58.       set the loc of sprite 50 to point(288, 114)
  59.       set the ink of sprite 50 to 8
  60.       set the member of sprite 44 to member "platformbox"
  61.       set the loc of sprite 44 to point(437, 360)
  62.       set the ink of sprite 44 to 36
  63.       set the member of sprite 45 to member "sizebox"
  64.       set the loc of sprite 45 to point(437, 379)
  65.       set the ink of sprite 45 to 36
  66.       set the member of sprite 55 to member (SOFtemp & "_title")
  67.       set the loc of sprite 55 to point(452, 14)
  68.       set the ink of sprite 55 to 8
  69.       set SOFpreviewStart to the number of member (SOFtemp & "_prev1")
  70.       set SOFpreviewEnd to the number of member (SOFtemp & "_prev_end")
  71.       set SOFTotalAmount to SOFpreviewEnd - SOFpreviewStart + 1
  72.       if SOFTotalAmount > 0 then
  73.         if the number of member (SOFtemp & "_prev1") = -1 then
  74.           put 1 into field "TotalAmount"
  75.         else
  76.           put SOFTotalAmount into field "TotalAmount"
  77.         end if
  78.       else
  79.         put 1 into field "TotalAmount"
  80.       end if
  81.       put 1 into field "NumberOf"
  82.       set CheckFeatured to "if the featured of the prog" & SOFx & " of " & whichsection & " = 1 then SOFPutButsOn"
  83.       do(CheckFeatured)
  84.       set SOFprevsetup to 2
  85.       set the member of sprite 79 to member (whichsection & "_prod")
  86.       set the loc of sprite 79 to point(132, 273)
  87.       set the ink of sprite 79 to 36
  88.       set INSTALLPLAYCOPY1 to "soundsamplesbuttton_Light"
  89.       set INSTALLPLAYCOPY1PART2 to EMPTY
  90.       set thisprog9 to "if the sound of the prog" & SOFx & " of " & whichsection & " = INSTALLPLAYCOPY1PART2 then set the member of sprite 78 to member INSTALLPLAYCOPY1"
  91.       do(thisprog9)
  92.       set the loc of sprite 78 to point(286, 218)
  93.       set INSTALLPLAYCOPY1 to "videobutton_Light"
  94.       set INSTALLPLAYCOPY1PART2 to EMPTY
  95.       set thisprog9 to "if the video of the prog" & SOFx & " of " & whichsection & " = INSTALLPLAYCOPY1PART2 then set the member of sprite 77 to member INSTALLPLAYCOPY1"
  96.       do(thisprog9)
  97.       set the loc of sprite 77 to point(286, 259)
  98.       set the member of sprite 76 to member "red_bit_for_vids"
  99.       set the loc of sprite 76 to point(285, 230)
  100.       set the ink of sprite 76 to 36
  101.     2:
  102.       set whichonehuh to 2
  103.   end case
  104. end
  105.  
  106. on SOFPutButsOn
  107.   set the member of sprite 70 to member "NumberOfPreviews"
  108.   set the member of sprite 71 to member "LeftBrowse"
  109.   set the member of sprite 72 to member "RightBrowse"
  110.   set the member of sprite 73 to member "TotalAmount"
  111.   set the member of sprite 74 to member "NumberOf"
  112.   set the loc of sprite 70 to point(552, 296)
  113.   set the loc of sprite 71 to point(491, 292)
  114.   set the loc of sprite 72 to point(527, 292)
  115.   set the loc of sprite 73 to point(610, 284)
  116.   set the loc of sprite 74 to point(559, 284)
  117.   set the ink of sprite 70 to 8
  118.   set the ink of sprite 71 to 8
  119.   set the ink of sprite 72 to 8
  120.   set the ink of sprite 73 to 36
  121.   set the ink of sprite 74 to 36
  122. end
  123.