home *** CD-ROM | disk | FTP | other *** search
/ Greatest Childrens Stories Ever Told / Greatest_Stories.iso / movies / ripvan / shared.dir / 01011_Script_miaw < prev   
Text File  |  1994-11-07  |  1KB  |  68 lines

  1. --update 10/11/94 ch2/tales
  2. --exit and help movie
  3. ON SHOWMyWindow 
  4.   GLOBAL myWindow,helpmovie,mainDir
  5.   sound stop 1
  6.   pause
  7.   set whichmovie="win"
  8.   set horz = the stageleft + 110
  9.   set vert = the stagetop + 83
  10.   set horzT=horz+288
  11.   set vertB=vert+188
  12.   if objectP(myWindow) then forget(myWindow)
  13.   set windowbx to rect(horz,vert,horzT,vertB)
  14.   set myWindow to window whichmovie
  15.   set the rect of myWindow to windowbx
  16.   set the filename of myWindow to"win.dir"
  17.   set the titleVisible of myWindow to FALSE
  18.   set the modal of window whichmovie to true
  19.   when mousedown then whilewindowopen horz,vert,horzT,vertB
  20.   open myWindow
  21. end
  22.  
  23. --user cannot click beyon the exit or name box
  24. on whilewindowopen horz,vert,horzT,vertB
  25.   if the mouseH>horz or the mouseH<horzT then 
  26.     beep 1
  27.     dontpassevent
  28.   else
  29.     if the mouseV<vert or the mouseV>vertB then 
  30.       beep 1
  31.       dontpassevent
  32.     else 
  33.       when mousedown then nothing
  34.     end if
  35.   end if
  36. end whilewindowopen
  37.  
  38. on finishWindow
  39.   global myWindow
  40.   if objectP(myWindow) then forget myWindow
  41.   when mousedown then nothing
  42. end 
  43.  
  44. --corrects the problem of the dragon window staying on screen
  45. on No
  46.   finishwindow
  47.   when KEYDOWN then CHECKKEY
  48.   GO THE FRAME
  49. end
  50.  
  51.  
  52. on backfromHelp
  53.   
  54.   set the VISIBLE of window "help.screen" to FALSE
  55.   finishwindow
  56.   go the frame
  57. end 
  58.  
  59.  
  60. on Yes
  61.   global mywindow
  62.   set the VISIBLE of window "win" to FALSE
  63.   SETPUPPETS FALSE
  64.       GetOut()
  65. end
  66.  
  67.  
  68.