home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 February / WPCFEB97.ISO / dxrs / inxwfeb.dxr / 00030_CDXTurnPage.ls < prev    next >
Encoding:
Text File  |  1996-12-09  |  1.7 KB  |  51 lines

  1. on CDXTurnPage
  2.   global WhichINXResFieldsList, CDXWhichIndex, CDpageselect, CDrecordsfound
  3.   if CDpageselect > 0 then
  4.     if rollOver(31) and the mouseDown and (CDpageselect > 1) then
  5.       set CDpageselect to CDpageselect - 1
  6.       put "CDpageselect2", CDpageselect
  7.       repeat with t = 1 to count(WhichINXResFieldsList)
  8.         set the castNum of sprite getAt(getAt(WhichINXResFieldsList, t), 1) to the number of member "CDDot"
  9.         set the locH of sprite getAt(getAt(WhichINXResFieldsList, t), 1) to 2000
  10.       end repeat
  11.       if CDpageselect = 1 then
  12.         set the locH of sprite 31 to 2000
  13.       else
  14.         set the loc of sprite 31 to point(83, 428)
  15.         set the loc of sprite 32 to point(95, 413)
  16.       end if
  17.       updateStage()
  18.       case CDXWhichIndex of
  19.         1:
  20.           CDXFieldResults()
  21.           CDXdisplay()
  22.         2:
  23.           PRODFieldResults()
  24.           PRODdisplay()
  25.       end case
  26.     end if
  27.     if rollOver(32) and the mouseDown and (CDpageselect < (integer(CDrecordsfound / 18) + 1)) then
  28.       set CDpageselect to CDpageselect + 1
  29.       repeat with t = 1 to count(WhichINXResFieldsList)
  30.         set the castNum of sprite getAt(getAt(WhichINXResFieldsList, t), 1) to the number of member "CDDot"
  31.         set the locH of sprite getAt(getAt(WhichINXResFieldsList, t), 1) to 2000
  32.       end repeat
  33.       if CDpageselect = (integer(CDrecordsfound / 18) + 1) then
  34.         set the locH of sprite 32 to 2000
  35.       else
  36.         set the loc of sprite 32 to point(95, 413)
  37.         set the loc of sprite 31 to point(83, 428)
  38.       end if
  39.       updateStage()
  40.       case CDXWhichIndex of
  41.         1:
  42.           CDXFieldResults()
  43.           CDXdisplay()
  44.         2:
  45.           PRODFieldResults()
  46.           PRODdisplay()
  47.       end case
  48.     end if
  49.   end if
  50. end
  51.