home *** CD-ROM | disk | FTP | other *** search
/ PC User 1997 January / PCU_JAN.ISO / easyinst.dxr / Internal_482_DriverTest.ls < prev    next >
Encoding:
Text File  |  1996-12-02  |  14.7 KB  |  323 lines

  1. on DriverTest
  2.   global gIcon, gOS, gsoundOn
  3.   set CurrentIcon to gIcon
  4.   repeat with i = 19 to 41
  5.     if rollOver(i) then
  6.       set gIcon to i
  7.       exit repeat
  8.       next repeat
  9.     end if
  10.     set gIcon to 0
  11.   end repeat
  12.   puppetSprite(42, 1)
  13.   puppetSprite(43, 1)
  14.   if the visible of sprite gIcon = 1 then
  15.     if gIcon = 32 then
  16.       set the memberNum of sprite 32 to the number of member "intrac"
  17.       set the memberNum of sprite 43 to the number of member "intract Text"
  18.       set the locH of sprite 43 to the locH of sprite gIcon - 15
  19.       set the memberNum of sprite 42 to the number of member "Intract text Black"
  20.       set the locV of sprite 43 to 172
  21.       set the locV of sprite 42 to the locV of sprite 43 + 2
  22.       set the locH of sprite 42 to the locH of sprite 43 + 2
  23.       set the visible of sprite 43 to 1
  24.       set the visible of sprite 42 to 1
  25.       if gsoundOn = 0 then
  26.         puppetSound("drama1")
  27.         set gsoundOn to 1
  28.       end if
  29.     end if
  30.     if gIcon = 33 then
  31.       set the memberNum of sprite 33 to the number of member "games"
  32.       set the memberNum of sprite 43 to the number of member "games Text"
  33.       set the locH of sprite 43 to the locH of sprite gIcon - 18
  34.       set the memberNum of sprite 42 to the number of member "games text Black"
  35.       set the locV of sprite 43 to 172
  36.       set the locV of sprite 42 to the locV of sprite 43 + 2
  37.       set the locH of sprite 42 to the locH of sprite 43 + 2
  38.       set the visible of sprite 43 to 1
  39.       set the visible of sprite 42 to 1
  40.       if gsoundOn = 0 then
  41.         puppetSound("games1")
  42.         set gsoundOn to 1
  43.       end if
  44.     end if
  45.     if gIcon = 34 then
  46.       set the memberNum of sprite 34 to the number of member "educat"
  47.       set the memberNum of sprite 43 to the number of member "educat Text"
  48.       set the locH of sprite 43 to the locH of sprite gIcon - 30
  49.       set the memberNum of sprite 42 to the number of member "educat text Black"
  50.       set the locV of sprite 43 to 172
  51.       set the locV of sprite 42 to the locV of sprite 43 + 2
  52.       set the locH of sprite 42 to the locH of sprite 43 + 2
  53.       set the visible of sprite 43 to 1
  54.       set the visible of sprite 42 to 1
  55.       if gsoundOn = 0 then
  56.         puppetSound("sputter")
  57.         set gsoundOn to 1
  58.       end if
  59.     end if
  60.     if gIcon = 35 then
  61.       set the memberNum of sprite 35 to the number of member "genral02"
  62.       set the memberNum of sprite 43 to the number of member "genral Text"
  63.       set the locH of sprite 43 to the locH of sprite gIcon - 30
  64.       set the memberNum of sprite 42 to the number of member "genral text Black"
  65.       set the locV of sprite 43 to 172
  66.       set the locV of sprite 42 to the locV of sprite 43 + 2
  67.       set the locH of sprite 42 to the locH of sprite 43 + 2
  68.       set the visible of sprite 43 to 1
  69.       set the visible of sprite 42 to 1
  70.       if gsoundOn = 0 then
  71.         puppetSound("brfcs")
  72.         set gsoundOn to 1
  73.       end if
  74.     end if
  75.     if gIcon = 36 then
  76.       set the memberNum of sprite 36 to the number of member "online"
  77.       set the memberNum of sprite 43 to the number of member "online Text"
  78.       set the locH of sprite 43 to the locH of sprite gIcon - 35
  79.       set the memberNum of sprite 42 to the number of member "online text Black"
  80.       set the locV of sprite 43 to 172
  81.       set the locV of sprite 42 to the locV of sprite 43 + 2
  82.       set the locH of sprite 42 to the locH of sprite 43 + 2
  83.       set the visible of sprite 43 to 1
  84.       set the visible of sprite 42 to 1
  85.       if gsoundOn = 0 then
  86.         puppetSound("online")
  87.         set gsoundOn to 1
  88.       end if
  89.     end if
  90.     if gIcon = 37 then
  91.       set the memberNum of sprite 37 to the number of member "Utils"
  92.       set the memberNum of sprite 43 to the number of member "Utils Text"
  93.       set the locH of sprite 43 to the locH of sprite gIcon - 40
  94.       set the memberNum of sprite 42 to the number of member "Utils text Black"
  95.       set the locV of sprite 43 to 172
  96.       set the locV of sprite 42 to the locV of sprite 43 + 2
  97.       set the locH of sprite 42 to the locH of sprite 43 + 2
  98.       set the visible of sprite 43 to 1
  99.       set the visible of sprite 42 to 1
  100.       if gsoundOn = 0 then
  101.         puppetSound("utils")
  102.         set gsoundOn to 1
  103.       end if
  104.     end if
  105.     if gIcon = 38 then
  106.       set the memberNum of sprite 38 to the number of member "Patchs"
  107.       set the memberNum of sprite 43 to the number of member "Patchs Text"
  108.       set the locH of sprite 43 to the locH of sprite gIcon - 50
  109.       set the memberNum of sprite 42 to the number of member "Patchs text Black"
  110.       set the locV of sprite 43 to 172
  111.       set the locV of sprite 42 to the locV of sprite 43 + 2
  112.       set the locH of sprite 42 to the locH of sprite 43 + 2
  113.       set the visible of sprite 43 to 1
  114.       set the visible of sprite 42 to 1
  115.       if gsoundOn = 0 then
  116.         puppetSound("scuttle1")
  117.         set gsoundOn to 1
  118.       end if
  119.     end if
  120.     if gIcon = 39 then
  121.       set the memberNum of sprite 39 to the number of member "Driver"
  122.       set the memberNum of sprite 43 to the number of member "Driver Text"
  123.       set the locH of sprite 43 to the locH of sprite gIcon - 25
  124.       set the memberNum of sprite 42 to the number of member "Driver text Black"
  125.       set the locV of sprite 43 to 172
  126.       set the locV of sprite 42 to the locV of sprite 43 + 2
  127.       set the locH of sprite 42 to the locH of sprite 43 + 2
  128.       set the visible of sprite 43 to 1
  129.       set the visible of sprite 42 to 1
  130.       if gsoundOn = 0 then
  131.         puppetSound("mcycle")
  132.         set gsoundOn to 1
  133.       end if
  134.     end if
  135.     if gIcon = 40 then
  136.       set the memberNum of sprite 40 to the number of member "Info"
  137.       set the memberNum of sprite 43 to the number of member "Info Text"
  138.       set the locH of sprite 43 to the locH of sprite gIcon - 35
  139.       set the memberNum of sprite 42 to the number of member "Info text Black"
  140.       set the locV of sprite 43 to 172
  141.       set the locV of sprite 42 to the locV of sprite 43 + 2
  142.       set the locH of sprite 42 to the locH of sprite 43 + 2
  143.       set the visible of sprite 43 to 1
  144.       set the visible of sprite 42 to 1
  145.       if gsoundOn = 0 then
  146.         puppetSound("pagefor")
  147.         set gsoundOn to 1
  148.       end if
  149.     end if
  150.     if gIcon = 41 then
  151.       set the memberNum of sprite 41 to the number of member "Index"
  152.       set the memberNum of sprite 43 to the number of member "Index Text"
  153.       set the locH of sprite 43 to the locH of sprite gIcon - 25
  154.       set the memberNum of sprite 42 to the number of member "Index text Black"
  155.       set the locV of sprite 43 to 172
  156.       set the locV of sprite 42 to the locV of sprite 43 + 2
  157.       set the locH of sprite 42 to the locH of sprite 43 + 2
  158.       set the visible of sprite 43 to 1
  159.       set the visible of sprite 42 to 1
  160.       if gsoundOn = 0 then
  161.         puppetSound("index")
  162.         set gsoundOn to 1
  163.       end if
  164.     end if
  165.     if gIcon = 29 then
  166.       set the memberNum of sprite 43 to the number of member "Win95 Text"
  167.       set the locV of sprite 43 to the locV of sprite 29 - 5
  168.       set the locH of sprite 43 to the locH of sprite gIcon + 20
  169.       set the memberNum of sprite 42 to the number of member "Win95 text Black"
  170.       set the locV of sprite 42 to the locV of sprite 43 + 2
  171.       set the locH of sprite 42 to the locH of sprite 43 + 2
  172.       set the visible of sprite 43 to 1
  173.       set the visible of sprite 42 to 1
  174.     end if
  175.     if gIcon = 30 then
  176.       set the memberNum of sprite 43 to the number of member "Win31 Text"
  177.       set the locV of sprite 43 to the locV of sprite 30 - 5
  178.       set the locH of sprite 43 to the locH of sprite gIcon + 20
  179.       set the memberNum of sprite 42 to the number of member "Win31 text Black"
  180.       set the locV of sprite 42 to the locV of sprite 43 + 2
  181.       set the locH of sprite 42 to the locH of sprite 43 + 2
  182.       set the visible of sprite 43 to 1
  183.       set the visible of sprite 42 to 1
  184.     end if
  185.     if gIcon = 31 then
  186.       set the memberNum of sprite 43 to the number of member "OS2 Text"
  187.       set the locV of sprite 43 to the locV of sprite 31 - 5
  188.       set the locH of sprite 43 to the locH of sprite gIcon + 20
  189.       set the memberNum of sprite 42 to the number of member "OS2 text Black"
  190.       set the locV of sprite 42 to the locV of sprite 43 + 2
  191.       set the locH of sprite 42 to the locH of sprite 43 + 2
  192.       set the visible of sprite 43 to 1
  193.       set the visible of sprite 42 to 1
  194.     end if
  195.     if gIcon = 26 then
  196.       set the memberNum of sprite 43 to the number of member "Help text"
  197.       set the locV of sprite 43 to the locV of sprite 26 - 10
  198.       set the locH of sprite 43 to the locH of sprite gIcon + 20
  199.       set the memberNum of sprite 42 to the number of member "Help text Black"
  200.       set the locV of sprite 42 to the locV of sprite 43 + 2
  201.       set the locH of sprite 42 to the locH of sprite 43 + 2
  202.       set the visible of sprite 43 to 1
  203.       set the visible of sprite 42 to 1
  204.     end if
  205.     if gIcon = 27 then
  206.       set the memberNum of sprite 43 to the number of member "Home text"
  207.       set the locV of sprite 43 to the locV of sprite 27 - 10
  208.       set the locH of sprite 43 to the locH of sprite gIcon + 10
  209.       set the memberNum of sprite 42 to the number of member "Home text Black"
  210.       set the locV of sprite 42 to the locV of sprite 43 + 2
  211.       set the locH of sprite 42 to the locH of sprite 43 + 2
  212.       set the visible of sprite 43 to 1
  213.       set the visible of sprite 42 to 1
  214.     end if
  215.     if gIcon = 28 then
  216.       set the memberNum of sprite 43 to the number of member "Go back text"
  217.       set the locV of sprite 43 to the locV of sprite 28 - 5
  218.       set the locH of sprite 43 to the locH of sprite gIcon + 30
  219.       set the memberNum of sprite 42 to the number of member "Go back text Black"
  220.       set the locV of sprite 42 to the locV of sprite 43 + 2
  221.       set the locH of sprite 42 to the locH of sprite 43 + 2
  222.       set the visible of sprite 43 to 1
  223.       set the visible of sprite 42 to 1
  224.     end if
  225.     if gIcon = 25 then
  226.       set the memberNum of sprite 43 to the number of member "More text"
  227.       set the locV of sprite 43 to the locV of sprite 25 - 20
  228.       set the locH of sprite 43 to the locH of sprite gIcon - 60
  229.       set the memberNum of sprite 42 to the number of member "More text Black"
  230.       set the locV of sprite 42 to the locV of sprite 43 + 2
  231.       set the locH of sprite 42 to the locH of sprite 43 + 2
  232.       set the visible of sprite 43 to 1
  233.       set the visible of sprite 42 to 1
  234.     end if
  235.     if gIcon = 19 then
  236.       set the memberNum of sprite 43 to the number of member "CDROM Icon text"
  237.       set the locV of sprite 43 to the locV of sprite 19 - 10
  238.       set the locH of sprite 43 to the locH of sprite gIcon - 80
  239.       set the memberNum of sprite 42 to the number of member "CDROM Icon text Black"
  240.       set the locV of sprite 42 to the locV of sprite 43 + 2
  241.       set the locH of sprite 42 to the locH of sprite 43 + 2
  242.       set the visible of sprite 43 to 1
  243.       set the visible of sprite 42 to 1
  244.     end if
  245.     if gIcon = 20 then
  246.       set the memberNum of sprite 43 to the number of member "SOUND Icon text"
  247.       set the locV of sprite 43 to the locV of sprite 20 - 10
  248.       set the locH of sprite 43 to the locH of sprite gIcon - 60
  249.       set the memberNum of sprite 42 to the number of member "SOUND Icon text Black"
  250.       set the locV of sprite 42 to the locV of sprite 43 + 2
  251.       set the locH of sprite 42 to the locH of sprite 43 + 2
  252.       set the visible of sprite 43 to 1
  253.       set the visible of sprite 42 to 1
  254.     end if
  255.     if gIcon = 21 then
  256.       set the memberNum of sprite 43 to the number of member "VIDEO Icon text"
  257.       set the locV of sprite 43 to the locV of sprite 21 - 10
  258.       set the locH of sprite 43 to the locH of sprite gIcon - 55
  259.       set the memberNum of sprite 42 to the number of member "VIDEO Icon text Black"
  260.       set the locV of sprite 42 to the locV of sprite 43 + 2
  261.       set the locH of sprite 42 to the locH of sprite 43 + 2
  262.       set the visible of sprite 43 to 1
  263.       set the visible of sprite 42 to 1
  264.     end if
  265.     if gIcon = 22 then
  266.       set the memberNum of sprite 43 to the number of member "PRINTER Icon text"
  267.       set the locV of sprite 43 to the locV of sprite 22 - 10
  268.       set the locH of sprite 43 to the locH of sprite gIcon - 70
  269.       set the memberNum of sprite 42 to the number of member "PRINTER Icon text Black"
  270.       set the locV of sprite 42 to the locV of sprite 43 + 2
  271.       set the locH of sprite 42 to the locH of sprite 43 + 2
  272.       set the visible of sprite 43 to 1
  273.       set the visible of sprite 42 to 1
  274.     end if
  275.     if gIcon = 23 then
  276.       set the memberNum of sprite 43 to the number of member "MODEM Icon text"
  277.       set the locV of sprite 43 to the locV of sprite 23 - 10
  278.       set the locH of sprite 43 to the locH of sprite gIcon - 67
  279.       set the memberNum of sprite 42 to the number of member "MODEM Icon text Black"
  280.       set the locV of sprite 42 to the locV of sprite 43 + 2
  281.       set the locH of sprite 42 to the locH of sprite 43 + 2
  282.       set the visible of sprite 43 to 1
  283.       set the visible of sprite 42 to 1
  284.     end if
  285.     if gIcon = 24 then
  286.       set the memberNum of sprite 43 to the number of member "SCSI Icon text"
  287.       set the locV of sprite 43 to the locV of sprite 24 - 10
  288.       set the locH of sprite 43 to the locH of sprite gIcon - 60
  289.       set the memberNum of sprite 42 to the number of member "SCSI Icon text Black"
  290.       set the locV of sprite 42 to the locV of sprite 43 + 2
  291.       set the locH of sprite 42 to the locH of sprite 43 + 2
  292.       set the visible of sprite 43 to 1
  293.       set the visible of sprite 42 to 1
  294.     end if
  295.     if gIcon = 25 then
  296.       set the memberNum of sprite 43 to the number of member "MISC Icon text"
  297.       set the locV of sprite 43 to the locV of sprite 25 - 10
  298.       set the locH of sprite 43 to the locH of sprite gIcon - 110
  299.       set the memberNum of sprite 42 to the number of member "MISC Icon text Black"
  300.       set the locV of sprite 42 to the locV of sprite 43 + 2
  301.       set the locH of sprite 42 to the locH of sprite 43 + 2
  302.       set the visible of sprite 43 to 1
  303.       set the visible of sprite 42 to 1
  304.     end if
  305.   end if
  306.   if (gIcon = 0) or (CurrentIcon <> gIcon) then
  307.     set the memberNum of sprite 32 to the number of member "Intrac01"
  308.     set the memberNum of sprite 33 to the number of member "games01"
  309.     set the memberNum of sprite 34 to the number of member "Educat01"
  310.     set the memberNum of sprite 35 to the number of member "Genral01"
  311.     set the memberNum of sprite 36 to the number of member "Online01"
  312.     set the memberNum of sprite 37 to the number of member "Utils01"
  313.     set the memberNum of sprite 38 to the number of member "Patchs01"
  314.     set the memberNum of sprite 39 to the number of member "Driver01"
  315.     set the memberNum of sprite 40 to the number of member "Info01"
  316.     set the memberNum of sprite 41 to the number of member "Index01"
  317.     set the visible of sprite 43 to 0
  318.     set the visible of sprite 42 to 0
  319.     puppetSound(1, 0)
  320.     set gsoundOn to 0
  321.   end if
  322. end
  323.