home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gPcMatrix, gMacMatrix, gAuthorized, gAnswer, gButton, gPhoto, g1aName, g1bName, g1cName, g1dName, g1eName, g1fName, g2aName, g2bName, g2cName, g2dName, g2eName, g2fName, gtechName
- clearGlobals()
- gAuthorized = 0
- repeat with spriteLoop = 6 to 25
- sprite(spriteLoop).visible = 1
- end repeat
- getExternals()
- newMAtrix()
- ButtonConfig()
- ButtonSet()
- BuildMatrix()
- end
-
- on ButtonSet
- global g1aName, g1bName, g1cName, g1dName, g1eName, g1fName, g2aName, g2bName, g2cName, g2dName, g2eName, g2fName, gtechName
- member("1a", 1).text = g1aName
- if g1aName = EMPTY then
- sprite(7).visible = 0
- end if
- if g1aName = EMPTY then
- sprite(8).visible = 0
- end if
- member("1b", 1).text = g1bName
- if g1bName = EMPTY then
- sprite(9).visible = 0
- end if
- if g1bName = EMPTY then
- sprite(10).visible = 0
- end if
- member("1c", 1).text = g1cName
- if g1cName = EMPTY then
- sprite(11).visible = 0
- end if
- if g1cName = EMPTY then
- sprite(12).visible = 0
- end if
- member("1d", 1).text = g1dName
- if g1dName = EMPTY then
- sprite(13).visible = 0
- end if
- if g1dName = EMPTY then
- sprite(14).visible = 0
- end if
- member("1e", 1).text = g1eName
- if g1eName = EMPTY then
- sprite(15).visible = 0
- end if
- if g1eName = EMPTY then
- sprite(16).visible = 0
- end if
- member("1f", 1).text = g1fName
- if g1fName = EMPTY then
- sprite(17).visible = 0
- end if
- if g1fName = EMPTY then
- sprite(18).visible = 0
- end if
- member("2a", 1).text = g2aName
- if g2aName = EMPTY then
- sprite(19).visible = 0
- end if
- member("2b", 1).text = g2bName
- if g2bName = EMPTY then
- sprite(20).visible = 0
- end if
- member("2c", 1).text = g2cName
- if g2cName = EMPTY then
- sprite(21).visible = 0
- end if
- member("2d", 1).text = g2dName
- if g2dName = EMPTY then
- sprite(22).visible = 0
- end if
- member("2e", 1).text = g2eName
- if g2eName = EMPTY then
- sprite(23).visible = 0
- end if
- member("2f", 1).text = g2fName
- if g2fName = EMPTY then
- sprite(24).visible = 0
- end if
- member("technician", 1).text = gtechName
- if gtechName = EMPTY then
- sprite(25).visible = 0
- end if
- end
-
- on getExternals
- if the machineType = 256 then
- background = the moviePath & "external" & "\" & "backgrnd.bmp"
- xbmp = the moviePath & "external" & "\" & "x.bmp"
- abmp = the moviePath & "external" & "\" & "a.bmp"
- bbmp = the moviePath & "external" & "\" & "b.bmp"
- cbmp = the moviePath & "external" & "\" & "c.bmp"
- dbmp = the moviePath & "external" & "\" & "d.bmp"
- ebmp = the moviePath & "external" & "\" & "e.bmp"
- fbmp = the moviePath & "external" & "\" & "f.bmp"
- title1Copy = the moviePath & "external" & "\" & "1title.rtf"
- title2Copy = the moviePath & "external" & "\" & "2title.rtf"
- text1Copy = the moviePath & "external" & "\" & "1text.rtf"
- text2Copy = the moviePath & "external" & "\" & "2text.rtf"
- quitCopy = the moviePath & "external" & "\" & "quittext.rtf"
- matrixCopy = the moviePath & "external" & "\" & "matrixScript.rtf"
- else
- background = the moviePath & "external" & ":" & "backgrnd.bmp"
- xbmp = the moviePath & "external" & ":" & "x.bmp"
- abmp = the moviePath & "external" & ":" & "a.bmp"
- bbmp = the moviePath & "external" & ":" & "b.bmp"
- cbmp = the moviePath & "external" & ":" & "c.bmp"
- dbmp = the moviePath & "external" & ":" & "d.bmp"
- ebmp = the moviePath & "external" & ":" & "e.bmp"
- fbmp = the moviePath & "external" & ":" & "f.bmp"
- title1Copy = the moviePath & "external" & ":" & "1title.rtf"
- title2Copy = the moviePath & "external" & ":" & "2title.rtf"
- text1Copy = the moviePath & "external" & ":" & "1text.rtf"
- text2Copy = the moviePath & "external" & ":" & "2text.rtf"
- quitCopy = the moviePath & "external" & ":" & "quittext.rtf"
- matrixCopy = the moviePath & "external" & ":" & "matrixScript.rtf"
- end if
- importFileInto(member("x"), xbmp)
- importFileInto(member("a"), abmp)
- importFileInto(member("b"), bbmp)
- importFileInto(member("c"), cbmp)
- importFileInto(member("d"), dbmp)
- importFileInto(member("e"), ebmp)
- importFileInto(member("f"), fbmp)
- importFileInto(member("backgrnd"), background)
- importFileInto(member("1title"), title1Copy)
- importFileInto(member("2title"), title2Copy)
- importFileInto(member("1text"), text1Copy)
- importFileInto(member("2text"), text2Copy)
- importFileInto(member("quittext"), quitCopy)
- importFileInto(member("matrixScript"), matrixCopy)
- end
-
- on newMAtrix
- newMember = new(#script, member(13, "Internal"))
- newMember.name = "matrix"
- newMember.scriptType = #movie
- newMember.scriptText = member("matrixScript").text
- end
-
- on BuildMatrix
- buildPCMatrix()
- buildMacMatrix()
- end
-
- on DisplayProduct
- global gPhoto
- end
-
- on RecordAnswer1
- global gButton, gAnswer
- if voidp(gButton) then
- return
- else
- if gButton contains "1a" then
- go("credit")
- gAnswer = gButton
- OpenVTruck(gAnswer)
- quit()
- else
- if gButton contains "1b" then
- gAnswer = gButton
- OpenDoc(gAnswer)
- gButton = EMPTY
- go("question2")
- end if
- end if
- end if
- end
-
- on RecordAnswer2
- global gButton, gAnswer
- if voidp(gButton) then
- return
- else
- if gButton contains "2a" then
- put gAnswer
- checkAuthorization()
- go("credit")
- OpenVTruck(gAnswer)
- quit()
- else
- if gButton contains "2b" then
- go("credit")
- quit()
- end if
- end if
- end if
- end
-
- on checkAuthorization
- global gAuthorized, gAnswer
- if gAuthorized = 0 then
- exit
- else
- authorized = gAnswer
- gAnswer = "t" & authorized
- put gAnswer
- end if
- end
-
- on OpenVTruck gAnswer
- global gAnswer, gMatrix
- folderName = "Adelphia"
- if voidp(folderName) then
- return
- else
- if the machineType = 256 then
- theFile = the moviePath & folderName & "\" & "Adelphia.exe"
- put theFile
- open(theFile)
- else
- theFile = the moviePath & folderName & ":" & "Adelphia"
- put theFile
- open(theFile)
- end if
- end if
- end
-
- on OpenDoc gAnswer
- global gAnswer, gMatrix, id
- folderName = "Docs"
- if voidp(folderName) then
- return
- else
- if the machineType = 256 then
- id = freeReadRegString("SOFTWARE\Adobe\Acrobat Reader\4.0\Language", "UI", "temp", "HKEY_LOCAL_MACHINE")
- if id <> "temp" then
- theFile = the moviePath & folderName & "\" & "openfile.exe"
- put theFile
- open(theFile)
- else
- theInstaller = the moviePath & folderName & "\" & "launchs.exe"
- put theInstaller
- open(theInstaller)
- repeat while id = "temp"
- startTimer()
- repeat while the timer < 600
- end repeat
- id = freeReadRegString("SOFTWARE\Adobe\Acrobat Reader\4.0\Language", "UI", "temp", "HKEY_LOCAL_MACHINE")
- end repeat
- theFile = the moviePath & folderName & "\" & "openfile.exe"
- put theFile
- open(theFile)
- end if
- else
- theFile = the moviePath & folderName & ":" & "viewdoc2"
- put theFile
- open(theFile)
- end if
- end if
- end
-
- on returnTO
- global gButton, gAnswer
- answerCheck = the number of chars in gAnswer
- if (gButton contains "1") and (answerCheck = "2") then
- else
- if (gButton contains "1") and (answerCheck = "4") then
- else
- if (gButton contains "2") and (answerCheck = "2") then
- temp2Answer = char 1 to 2 of gAnswer
- gAnswer = temp2Answer & gButton
- put gAnswer
- else
- if (gButton contains "2") and (answerCheck = "4") then
- temp2Answer = char 1 to 2 of gAnswer
- gAnswer = temp2Answer & gButton
- put gAnswer
- end if
- end if
- end if
- end if
- end
-
- on quitProgram
- quit()
- end
-