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

  1. property myParams
  2. global gDialogPresent, gObj3
  3.  
  4. on beginSprite me
  5.   set bugFix to the left of sprite 2
  6.   set myRect to the rect of sprite 2
  7.   disable(sprite(30 + the cBalloonTypeSize of gObj3))
  8.   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))
  9.   checkBtnLocations(the bottom of myRect)
  10.   set theRect to myRect + rect(offsetPoint, offsetPoint)
  11.   set the rect of the activeWindow to theRect
  12.   set the modal of the activeWindow to 1
  13.   set the visible of the activeWindow to 1
  14.   set the keyDownScript to "keyCheck(gObj3, the key)"
  15.   updateInsertion(gObj3)
  16. end
  17.  
  18. on getPropertyDescriptionList
  19.   return [#myParams: [#comment: "Params:", #format: #integer, #default: VOID]]
  20. end
  21.