home *** CD-ROM | disk | FTP | other *** search
- global gPDL, gNopeSND, gNewSetIsHereF, gBtnHitSND, gUpdateAttribFld
-
- on hDetectNewUpdate
- if the number of castMembers > 3999 then
- if the name of cast 4000 = "CORRESPONDENCE MAP" then
- if the name of cast 4001 <> the name of cast 510 then
- go("UpA")
- return 1
- else
- return 0
- end if
- else
- return 0
- end if
- else
- return 0
- end if
- end
-
- on hNeverMind
- go("UpNo")
- hAnnounce("Acknowledged 1")
- go("OpC2")
- hPrepareAll()
- end
-
- on hDoTheUpdate
- go("UpY1")
- hReportStatus("Thank you. Update begins...")
- hAnnounce("Init. Ency Update")
- set Ltemplist to [:]
- set Ltemplist to value(field 4000)
- if not objectp(Ltemplist) then
- hReportStatus("Correspondence Map for update not created.")
- go("UpOops")
- hAnnounce("Ency update Error")
- return
- end if
- set Lnum to count(Ltemplist)
- repeat with i = 1 to Lnum
- set Lcstfrom to getPropAt(Ltemplist, i)
- set Lcstto to getAt(Ltemplist, i)
- hReplaceFields(Lcstfrom, Lcstto)
- end repeat
- go("UpY2")
- hearit(gBtnHitSND)
- set Lpass to 1
- hAnnounce("Working 1")
- repeat with i = 1 to Lnum
- if the name of cast Lcstfrom <> the name of cast Lcstto then
- hReportStatus("The name of field number" && i && "does not match the update.")
- hearit(gNopeSND)
- set Lpass to 0
- end if
- end repeat
- if not (the name of cast gUpdateAttribFld starts "UPDATE") then
- alert("The UPDATE text field does not appear where it was expected. Updates may not work.")
- else
- set Lmyname to the name of cast gUpdateAttribFld
- set Lthiscode to char 8 to length(Lmyname) of Lmyname
- put RETURN & Lthiscode after field "History of Updates"
- end if
- put "Adjusting internal data table..." into field "Status"
- hUpdateCastTable()
- go("UpY3")
- hearit(gBtnHitSND)
- if Lpass then
- put "Update complete. Saving..." into field "Status"
- go("UpY4")
- hearit(gBtnHitSND)
- put "One moment please..." into field "Status"
- saveMovie()
- go("UpY5")
- hAnnounce("Update Complete")
- repeat while soundBusy(1)
- end repeat
- repeat while soundBusy(0)
- end repeat
- go("UpY5zap")
- else
- put "That didnt work..." into field "Status"
- hAnnounce("Ency update Error")
- go("OpC2")
- hPrepareAll()
- end if
- end
-
- on hZapTheShare
- set Lf to the pathName & "Control" & gPDL & "zapshare.dir"
- if hFileIsHere(Lf) then
- play movie Lf
- end if
- end
-
- on hOpenContinues
- global oVidCD
- set gNewSetIsHereF to 1
- mCreateCDlist(oVidCD)
- go("OpC2")
- hPrepareAll()
- end
-
- on hReplaceFields pFrom, pTo
- copyToClipBoard(cast pFrom)
- pasteClipBoardInto(cast pTo)
- end
-
- on hLUmode pWhat
- if pWhat = #EN then
- return "ENCY"
- end if
- if pWhat = #EP then
- return "EPIS"
- end if
- if pWhat = #CH then
- return "CHRO"
- end if
- if pWhat = #to then
- return "TOPI"
- end if
- if pWhat = #RE then
- return "RESO"
- end if
- end
-
- on hZapSharedCast
- play movie the pathName & "hidingplace:sharedzapper"
- end
-
- on hSaveMeSaveMe
- saveMovie()
- end
-