home *** CD-ROM | disk | FTP | other *** search
- global gCameraList, gCount, gString, newPicName
-
- on startMovie
- alert("Laita pelilevyke(Tapaus Luonto) levyasemaan ja valitse levykkeelt√§ filmirullan nimi.")
- 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 "camera")
- exit
- end if
- set gString to readObject(mReadLine)
- 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 "camera")
- exit
- end if
- set gString to readObject(mReadToken, EMPTY, "]")
- readObject(mdispose)
- end if
- if not (gString contains "pic") or (voidp(gString) = 1) then
- alert("T√§ss√§ tiedostossa ei ole kuvia!")
- forget(window "camera")
- else
- put EMPTY into field "list"
- put gString into field "text"
- set gCameraList to value(the text of field "text")
- set gCount to count(gCameraList)
- repeat with x = 1 to gCount
- put "kuva" && x & RETURN after field "list"
- end repeat
- hilite line 1 of field "list"
- set newPicName to getAt(gCameraList, 1)
- set the media of member 11 to the media of member newPicName
- set the palette of member 11 to 604
- end if
- end
-