home *** CD-ROM | disk | FTP | other *** search
- on listlinkedfile n, m
- repeat with i = n to m
- put i && the fileName of cast i
- end repeat
- end
-
- on changelinkedfilepath oldpath, newpath, n, m
- set oldpath to folderfrompath(oldpath)
- repeat with i = n to m
- set path to the fileName of cast i
- if path <> EMPTY then
- set folder to folderfrompath(path)
- if folder = oldpath then
- set file to filefrompath(path)
- set folder to folderfrompath(path)
- set the fileName of cast i to newpath & ":" & file
- end if
- end if
- put i && the fileName of cast i
- end repeat
- end
-
- on changelinkedfilepfe oldpath, newpath, n, m
- set oldfolder to folderfrompath(oldpath)
- set oldfile to filefromfile(filefrompath(oldpath))
- set oldext to extentionfromfile(oldpath)
- set newfolder to folderfrompath(newpath)
- set newfile to filefromfile(filefrompath(newpath))
- set newext to extentionfromfile(newpath)
- repeat with i = n to m
- set path to the fileName of cast i
- if path <> EMPTY then
- set folder to folderfrompath(path)
- set file to filefromfile(filefrompath(path))
- set ext to extentionfromfile(path)
- set st to offset(oldfile, file)
- if (folder = oldfolder) and (st <> 0) and (ext = oldext) then
- set file to newfile & char st + length(oldfile) to the number of chars in file of file
- set the fileName of cast i to newfolder & ":" & file & "." & newext
- end if
- end if
- put i && path && "->" && the fileName of cast i
- end repeat
- end
-
- on changelinkedpictobmp n, m
- repeat with i = n to m
- set path to the fileName of cast i
- if path <> EMPTY then
- set extention to extentionfromfile(path)
- if (extention = "PIC") or (extention = "pic") then
- set file to filefrompath(path)
- set folder to folderfrompath(path)
- set filebody to filefromfile(file)
- set the fileName of cast i to folder & ":" & filebody & "." & "BMP"
- put folder & ":" & filebody & "." & "BMP"
- put the fileName of cast i
- end if
- end if
- end repeat
- end
-
- on changelinkedbmptopict n, m
- repeat with i = n to m
- set path to the fileName of cast i
- if path <> EMPTY then
- set extention to extentionfromfile(path)
- if (extention = "BMP") or (extention = "bmp") then
- set file to filefrompath(path)
- set folder to folderfrompath(path)
- set filebody to filefromfile(file)
- set the fileName of cast i to folder & ":" & filebody & "." & "PIC"
- put the fileName of cast i
- end if
- end if
- end repeat
- end
-
- on correctlinkfile machine
- set bpath to the pathName
- if machine = 256 then
- set the fileName of cast 1 to bpath & "datastuf:" & "gs0001.bmp"
- put the fileName of cast 1
- set the fileName of cast 2 to bpath & "datastuf:" & "gs0002.bmp"
- put the fileName of cast 2
- set the fileName of cast 3 to bpath & "datastuf:" & "gs0003.bmp"
- put the fileName of cast 3
- set the fileName of cast 4 to bpath & "datastuf:" & "gs0004.bmp"
- put the fileName of cast 4
- set the fileName of cast 5 to bpath & "datastuf:" & "gs0005.bmp"
- put the fileName of cast 5
- set the fileName of cast 6 to bpath & "datastuf:" & "gs0006.bmp"
- put the fileName of cast 6
- set the fileName of cast 7 to bpath & "datastuf:" & "gs0007.bmp"
- put the fileName of cast 7
- set the fileName of cast 8 to bpath & "datastuf:" & "gs0010.bmp"
- put the fileName of cast 8
- set the fileName of cast 9 to bpath & "datastuf:" & "gs0011.bmp"
- put the fileName of cast 9
- set the fileName of cast 10 to bpath & "datastuf:" & "gs0012.bmp"
- put the fileName of cast 10
- set the fileName of cast 11 to bpath & "datastuf:" & "gs00bk.bmp"
- put the fileName of cast 11
- set the fileName of cast 12 to bpath & "datastuf:" & "gs00mb.bmp"
- put the fileName of cast 12
- repeat with i = 1 to 100
- set cname to item 1 of line i of field "data"
- set fname to cname & "." & "BMP"
- put i
- set the fileName of cast (104 + i) to bpath & "120_8:" & fname
- set the name of cast (104 + i) to "120" & cname
- put the fileName of cast (104 + i) && the name of cast (104 + i)
- set the fileName of cast (204 + i) to bpath & "240_8:" & fname
- set the name of cast (204 + i) to "240" & cname
- put the fileName of cast (204 + i) && the name of cast (204 + i)
- set the fileName of cast (304 + i) to bpath & "640_8:" & fname
- set the name of cast (304 + i) to "640" & cname
- put the fileName of cast (304 + i) && the name of cast (304 + i)
- end repeat
- else
- set the fileName of cast 1 to bpath & "datastuf:" & "gs0001.pic"
- put the fileName of cast 1
- set the fileName of cast 2 to bpath & "datastuf:" & "gs0002.pic"
- put the fileName of cast 2
- set the fileName of cast 3 to bpath & "datastuf:" & "gs0003.pic"
- put the fileName of cast 3
- set the fileName of cast 4 to bpath & "datastuf:" & "gs0004.pic"
- put the fileName of cast 4
- set the fileName of cast 5 to bpath & "datastuf:" & "gs0005.pic"
- put the fileName of cast 5
- set the fileName of cast 6 to bpath & "datastuf:" & "gs0006.pic"
- put the fileName of cast 6
- set the fileName of cast 7 to bpath & "datastuf:" & "gs0007.pic"
- put the fileName of cast 7
- set the fileName of cast 8 to bpath & "datastuf:" & "gs0010.pic"
- put the fileName of cast 8
- set the fileName of cast 9 to bpath & "datastuf:" & "gs0011.pic"
- put the fileName of cast 9
- set the fileName of cast 10 to bpath & "datastuf:" & "gs0012.pic"
- put the fileName of cast 10
- set the fileName of cast 11 to bpath & "datastuf:" & "gs00bk.pic"
- put the fileName of cast 11
- set the fileName of cast 12 to bpath & "datastuf:" & "gs00mb.pic"
- put the fileName of cast 12
- repeat with i = 1 to 100
- set cname to item 1 of line i of field "data"
- set fname to cname & "." & "PIC"
- put i
- set the fileName of cast (104 + i) to bpath & "120x90:" & fname
- set the name of cast (104 + i) to "120" & cname
- put the fileName of cast (104 + i) && the name of cast (104 + i)
- set the fileName of cast (204 + i) to bpath & "240x180:" & fname
- set the name of cast (204 + i) to "240" & cname
- put the fileName of cast (204 + i) && the name of cast (204 + i)
- set the fileName of cast (304 + i) to bpath & "640x480:" & fname
- set the name of cast (304 + i) to "640" & cname
- put the fileName of cast (304 + i) && the name of cast (304 + i)
- end repeat
- end if
- correctregpoint(105, 204)
- saveMovie()
- unLoadCast(105, 204)
- correctregpoint(205, 304)
- saveMovie()
- unLoadCast(205, 304)
- correctregpoint(305, 350)
- saveMovie()
- unLoadCast(305, 350)
- correctregpoint(351, 404)
- saveMovie()
- unLoadCast(351, 404)
- end
-
- on filefrompath path
- set saved to the itemDelimiter
- set the itemDelimiter to ":"
- set ret to the last item in path
- set the itemDelimiter to saved
- return ret
- end
-
- on folderfrompath path
- set saved to the itemDelimiter
- set the itemDelimiter to ":"
- set n to the number of items in path
- set ret to item 1 to n - 1 of path
- set the itemDelimiter to saved
- return ret
- end
-
- on extentionfromfile file
- set saved to the itemDelimiter
- set the itemDelimiter to "."
- set ret to the last item in file
- set the itemDelimiter to saved
- return ret
- end
-
- on filefromfile file
- set saved to the itemDelimiter
- set the itemDelimiter to "."
- set ret to item 1 of filefrompath(file)
- set the itemDelimiter to saved
- return ret
- end
-