home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- checkColor()
- end
-
- on checkColor
- if the colorDepth <> 8 then
- set the colorDepth to 8
- if the colorDepth <> 8 then
- set colStr to "Sorry, Keroppi DayHopper requires 256 colors." & RETURN
- put "Please contact your Apple dealer for information about a color system upgrade." after colStr
- alert(colStr)
- play done
- end if
- end if
- end
-
- on doSolidColor colIndex
- global FHobj
- if (colIndex < 0) or (colIndex > 255) then
- set colIndex to 0
- end if
- if objectp(FHobj) then
- FHobj(mdispose)
- end if
- set FHobj to FinderHider(mnew)
- FHobj(mSetBorderColor, colIndex)
- FHobj(mUpdateBorder)
- FHobj(mShowBorder, 1)
- end
-
- on checkScreenSize
- global screenSizeOBJ
- if objectp(screenSizeOBJ) then
- screenSizeOBJ(mdispose)
- end if
- set screenSizeOBJ to RearWindow(mnew, "S")
- set resultCode to value(screenSizeOBJ)
- if resultCode < 0 then
- alert("System Error trying to use RearWindow XOBJ" && string(resultCode))
- end if
- set R to screenSizeOBJ(mGetScreenRight)
- set B to screenSizeOBJ(mGetScreenBottom)
- put R && B
- if (R < 832) or (B < 624) then
- alert("You need at least a 13 inch monitor to run the Keroppi DayHopper Demo.")
- play done
- end if
- end
-