home *** CD-ROM | disk | FTP | other *** search
- global Del, gPlatform, allowContinue, gI_have_QT, PathToInstaller, CheckForQuicktime, userDisplay, glang
-
- on prepareMovie me
- BuddyReg = baRegister("North Creative", 3705836)
- userDisplay = []
- end
-
- on startMovie
- Del = the last char in the pathname
- allowContinue = 0
- CheckForQuicktime = 1
- glang = "pol"
- PlatformType()
- end
-
- on whatLanguage
- FolderList = baFolderList(the pathname & "version")
- if count(FolderList) = 1 then
- glang = FolderList[1]
- else
- alert("Error - glang set to 'eng'")
- glang = "eng"
- end if
- end
-
- on CheckForQuicktimeVersion
- if CheckForQuicktime then
- member("system").text = gPlatform && string(QuickTimeVersion())
- if QuickTimeVersion() >= 5 then
- gI_have_QT = 1
- ContinueOn()
- else
- gI_have_QT = 0
- Warning()
- end if
- else
- gI_have_QT = 1
- ContinueOn()
- end if
- end
-
- on PlatformType
- gPlatform = "PC"
- if the applicationName contains "Classic" then
- gPlatform = "Classic"
- end if
- if the applicationName contains "OSX" then
- gPlatform = "OSX"
- end if
- case gPlatform of
- "PC":
- PathToInstaller = the pathname & "QuickTime\win\QuickTimeInstaller.exe"
- "Classic":
- PathToInstaller = the pathname & "QuickTime:mac:QuickTime Installer"
- "OSX":
- PathToInstaller = the pathname & "QuickTime:mac:QuickTimeInstallerX.dmg"
- end case
- end
-
- on ContinueOn
- if the keyPressed = "q" then
- gI_have_QT = 0
- Warning()
- else
- go("go")
- play movie the pathname & "CD" & Del & "main"
- end if
- end
-
- on Warning
- member("system").text = member("system").text && PathToInstaller
- go(gPlatform && "warning")
- end
-
- on ButtonEvent theEvent
- case theEvent of
- "Continue":
- ContinueOn()
- "Quit":
- quit()
- "Install":
- if (gPlatform = "classic") or (gPlatform = "PC") then
- open(PathToInstaller)
- end if
- if gPlatform = "OSX" then
- openPKG = baOpenFile(PathToInstaller, "Normal")
- end if
- quit()
- end case
- end
-
- on canIshow myName, spNum
- case myName of
- "Continue_Mask":
- sprite(spNum).visible = not allowContinue
- "Continue":
- sprite(spNum).visible = allowContinue
- end case
- end
-