home *** CD-ROM | disk | FTP | other *** search
/ Creative Review 39 / Creative-Review-CD-ROM-39.iso / pc / getty / getty.dir / 00007_Script_7 < prev    next >
Text File  |  1998-07-13  |  2KB  |  88 lines

  1. global gLastRolled
  2.  
  3. on updateMe1 
  4.   
  5.   
  6.   if gLastRolled <> 0 then
  7.     if rollover(gLastRolled) then
  8.       exit
  9.     end if
  10.   end if
  11.   
  12.   set gLastRolled = 0
  13.   repeat with x=14 to 16
  14.     if rollover(x) then
  15.       set gLastRolled = x
  16.       exit repeat
  17.     end if
  18.   end repeat
  19.   
  20.   if gLastRolled = 0 then
  21.     set the member of sprite 18 to member "Placedot1"
  22.   else
  23.     set the member of sprite 18 to member ("Roll" & (x - 13))
  24.   end if
  25.   
  26.   updatestage
  27.   
  28. end updateMe1
  29. ---------------------
  30. on updateMe2
  31.   
  32.   
  33.   if gLastRolled <> 0 then
  34.     if rollover(gLastRolled) then
  35.       exit
  36.     end if
  37.   end if
  38.   
  39.   set gLastRolled = 0
  40.   repeat with x=14 to 16
  41.     if rollover(x) then
  42.       set gLastRolled = x
  43.       exit repeat
  44.     end if
  45.   end repeat
  46.   
  47.   if gLastRolled = 0 then
  48.     set the member of sprite 18 to member "Placedot2"
  49.   else
  50.     set the member of sprite 18 to member ("2Roll" & (x - 13))
  51.   end if
  52.   updatestage
  53.   
  54. end updateMe2
  55. ---------------------
  56. on dispalyPic
  57.   case the clickon of
  58.     10:
  59.       if the memberNum of sprite 5 = 97 then 
  60.         set the member of sprite 5 to member 132
  61.       else
  62.         set the member of sprite 5 to member ((the memberNum of sprite 5) - 1) 
  63.       end if
  64.       
  65.     11:
  66.       if the memberNum of sprite 5 = 132 then 
  67.         set the member of sprite 5 to member 97
  68.       else
  69.         set the member of sprite 5 to member ((the memberNum of sprite 5) + 1) 
  70.       end if
  71.       
  72.     12:
  73.       if the memberNum of sprite 4 = 145 then 
  74.         set the member of sprite 4 to member 180
  75.       else
  76.         set the member of sprite 4 to member ((the memberNum of sprite 4) - 1)  
  77.       end if
  78.       
  79.     13:
  80.       if the memberNum of sprite 4 = 180 then 
  81.         set the member of sprite 4 to member 145
  82.       else
  83.         set the member of sprite 4 to member ((the memberNum of sprite 4) + 1)
  84.       end if
  85.   end case 
  86.   updatestage
  87. end dispalyPic
  88.