home *** CD-ROM | disk | FTP | other *** search
- on nextMovie
- global movielist, currentindex, movielength
- set currentindex to currentindex + 1
- if currentindex > count(movielist) then
- set currentindex to 1
- end if
- importFileInto(member 1, getNthFileNameInFolder(the moviePath, getAt(movielist, currentindex)))
- if the type of member 1 = #digitalVideo then
- if the preLoad of member 1 = 1 then
- preloadMember(1)
- end if
- set movielength to the duration of member 1
- else
- set movielength to 240
- end if
- end
-