home *** CD-ROM | disk | FTP | other *** search
/ Browser - Artopolis 97 / browser.iso / mac / artrope / artrope.dir / 00049_Script_menuHandlers < prev    next >
Text File  |  1997-10-08  |  3KB  |  99 lines

  1. global gSep
  2. --=================================
  3. --called from framescripts when the 
  4. --cursor is above x locV
  5. -----------------------------------
  6. on installMyMenu
  7.   installMenu "menus"
  8.   if the frameLabel = "end1" then
  9.     set the checkMark of menuItem(4) of menu "navigation" to true
  10.   else
  11.     set the checkMark of menuItem 2 of menu "navigation" to true
  12.   end if
  13.   put the soundlevel into xValue
  14.   set the checkMark of menuitem (xValue+1) of menu "volume" to true
  15. end
  16.  
  17.  
  18.  
  19. --=================================
  20. --called from pull-down menus
  21. --this handler sets the soundlevel and
  22. --sets the checkmark for that value
  23. -----------------------------------
  24. on soundLeveler xValue
  25.   set the soundlevel to xValue
  26.   repeat with i = 1 to the number of menuItems in menu "volume"
  27.     set the checkMark of menuItem i of menu "volume" to false
  28.   end repeat
  29.   set the checkMark of menuItem (xValue+1) of menu "volume" to true
  30. end
  31.  
  32.  
  33. --=================================
  34. --called from pull-down menus
  35. --this handler sends us to the
  36. --splash screen.
  37. -----------------------------------
  38. on goToChoice  
  39.   repeat with i = 1 to the number of menuItems in menu "navigation"
  40.     set the checkMark of menuItem i of menu "navigation" to false
  41.   end repeat
  42.   set the checkMark of menuItem 1 of menu "navigation" to true
  43.   if the frameLabel = "end1" then
  44.     repeat with i = 8 to 12
  45.       set the puppet of sprite i to false
  46.     end repeat
  47.   end if
  48.   repeat with i = 1 to 4
  49.     puppetsound i,0
  50.   end repeat
  51.   go to frame "intro"
  52. end
  53.  
  54.  
  55. --=================================
  56. --called from pull-down menus
  57. --this handler sends us to the
  58. --interactive.
  59. -----------------------------------
  60. on goToArtrope  
  61.   repeat with i = 1 to the number of menuItems in menu "navigation"
  62.     set the checkMark of menuItem i of menu "navigation" to false
  63.   end repeat
  64.   set the checkMark of menuItem 2 of menu "navigation" to true
  65.   if the frameLabel = "end1" then
  66.     repeat with i = 8 to 12
  67.       set the puppet of sprite i to false
  68.     end repeat
  69.   end if
  70.   repeat with i = 1 to 4
  71.     puppetsound i,0
  72.   end repeat
  73.   go to frame "choice"
  74. end
  75.  
  76.  
  77. --=================================
  78. --sends us to the end/credits movie
  79. -----------------------------------
  80. on goToEnd 
  81.   makeAlert (string(the pathname & "MIAWS"& gSep & "quit.dir"), [304,228])
  82. end
  83.  
  84. --=================================
  85. --called from the quit miaw
  86. -----------------------------------
  87. on pleaseDoQuit
  88.   cleanUpFrame
  89.   go to frame "END"
  90. end
  91.  
  92.  
  93. --=================================
  94. --brings up help movie
  95. -----------------------------------
  96. on goToHelp 
  97.   makeAlert (string(the pathname & "MIAWS"& gSep & "help.dir"),[336,247])
  98. end
  99.