if not (the number of member the member of sprite 9) then
set alertIconHeight to 32
else
set alertIconHeight to the height of the member of sprite 9
end if
set dialogBottom to max(alertIconHeight + 15 + 60, the bottom of sprite 10 + 20 + 40)
set myRect to rect(0, 0, 300, dialogBottom)
set the locV of sprite 1 to dialogBottom - 40
set the locV of sprite 9 to dialogBottom - 40 - 20
set the rect of sprite 2 to myRect
else
set myRect to the rect of sprite 2
end if
checkBtnLocations(the bottom of myRect)
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))
set theRect to myRect + rect(offsetPoint, offsetPoint)
set the rect of the activeWindow to theRect
set the modal of the activeWindow to 1
set the visible of the activeWindow to 1
set the keyDownScript to "checkKey(sprite " & the currentSpriteNum & ")"