home *** CD-ROM | disk | FTP | other *** search
- global gRecList, gCount, gString, gnewSound
-
- on startMovie
- alert("Stoppa speldisketten (Fallet Naturen) i diskettenheten och v√§lj ljudbandets namn i disketten")
- if the machineType = 256 then
- openXLib("fileio.dll")
- if objectp(readObject) then
- readObject(mdispose)
- end if
- set readObject to fileio(mnew, "?read", "TXT")
- if readObject = -43 then
- forget(window "soundswe")
- exit
- end if
- set gString to readObject(mReadToken, EMPTY, "]")
- readObject(mdispose)
- closeXLib("fileio.dll")
- end if
- if the machineType <> 256 then
- if objectp(readObject) then
- readObject(mdispose)
- end if
- set readObject to fileio(mnew, "?read", "TXT")
- if readObject = -43 then
- forget(window "soundswe")
- exit
- end if
- set gString to readObject(mReadToken, EMPTY, "]")
- readObject(mdispose)
- end if
- if not (gString contains "aif") or (voidp(gString) = 1) then
- alert("Det h√§r √§r inte ljudbandet!")
- forget(window "soundswe")
- else
- put EMPTY into field "list"
- put gString into field "text"
- set gRecList to value(the text of field "text")
- set gCount to count(gRecList)
- repeat with x = 1 to gCount
- put "ljud" && x & RETURN after field "list"
- end repeat
- hilite line 1 of field "list"
- end if
- end
-