home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Webster's Millennium Amer…Sign Language Dictionary
/
ASL.ISO
/
mac
/
SHARED.cst
/
00034_Script_34
< prev
next >
Wrap
Text File
|
2001-09-17
|
2KB
|
48 lines
--∂ï
on alertBox message
global myAlertWindow,dontQuit
if objectP(myAlertWindow) then
close myAlertWindow
forget myAlertWindow
else
set myAlertWindow to window "alert.dir"
set the windowType of window "alert.dir" = 3
---------------------
if the machineType = 256 then set the fileName of myAlertWindow to the pathName & "MIAWs\alert.dir"
else set the fileName of myAlertWindow to the pathName & "MIAWs:alert.dir"
---------------------
set the titleVisible of myAlertWindow to FALSE
set the modal of myAlertWindow to TRUE
tell myAlertWindow to go frame "alertMessage"
tell myAlertWindow to put message into field "message"
---------------------
put the rect of myAlertWindow into currentRect
set the rect of myAlertWindow to centerRect(currentRect)
--green lines added to force redraw on pc
-- tell myAlertWindow to updateStage
-- tell myAlertWindow to set the stageColor = the stageColor
enableMenu(FALSE)
pupPal(myAlertWindow)
if message = "Adding Downloaded signs..." then
--tell myAlertWindow to set the visible of sprite 4 to false
tell myAlertWindow to set the visible of sprite 3 to false --lose okay button
end if
if message = "Preparing Game..." then
tell myAlertWindow to set the visible of sprite 4 to false
end if
if message = "Preparing Questions..." then
tell myAlertWindow to set the visible of sprite 4 to false
end if
open myAlertWindow
moveToFront myAlertWindow
--green lines added to force redraw on pc
tell myAlertWindow to updateStage
tell myAlertWindow to set the stageColor = the stageColor
end if
end
on alertMessage Str
global myAlertWindow
if not objectP(myAlertWindow) then exit
tell myAlertWindow to put Str into field "message"
end alertMessage