home *** CD-ROM | disk | FTP | other *** search
/ Comic Book Maker: The Smurfs / COMIC.iso / mac / data_m / dialog / 00031_initSndDialogBhvr.ls < prev    next >
Encoding:
Text File  |  1999-07-07  |  951 b   |  24 lines

  1. property myParams
  2. global gObj6
  3.  
  4. on beginSprite me
  5.   set adjustVLoc to 10 + the height of the member of sprite 10 + 18
  6.   set bugFix to the left of sprite 2
  7.   set myRect to the rect of sprite 2 + [0, 0, 0, adjustVLoc]
  8.   set the rect of sprite 2 to myRect
  9.   repeat with i in [1, 9, 12, 13, 14, 15, 16]
  10.     set the locV of sprite i to the locV of sprite i + adjustVLoc
  11.   end repeat
  12.   set offsetPoint to point(getAt(the rect of the stage, 1) + ((640 - the width of myRect) / 2), getAt(the rect of the stage, 2) + ((480 - the height of myRect) / 2))
  13.   checkBtnLocations(the bottom of myRect)
  14.   set theRect to myRect + rect(offsetPoint, offsetPoint)
  15.   set the rect of the activeWindow to theRect
  16.   set the modal of the activeWindow to 1
  17.   set the visible of the activeWindow to 1
  18.   set the keyDownScript to "handleDefaultKeyDown(script 1)"
  19. end
  20.  
  21. on getPropertyDescriptionList
  22.   return [#myParams: [#comment: "Params:", #format: #integer, #default: VOID]]
  23. end
  24.