home *** CD-ROM | disk | FTP | other *** search
- on setMonitor
- global gPath, gUserPath, gCD, gFirstLine, gTotLine, groupList
- if (chars(gUserPath, 1, 3) = "A:\") and (DirectoryToList("A:\") = []) then
- set gUserPath to "Computer resources"
- end if
- if (offset(gCD, gUserPath) = 1) and (DirectoryToList(gCD) = []) then
- set gUserPath to "Computer resources"
- end if
- put gUserPath into field "fieldUserPath"
- set the foreColor of member "fieldUserPath" to 0
- if field "fieldUserPath" = "Computer resources" then
- put "A:\" & RETURN & chars(gCD, 1, length(gCD)) & RETURN & chars(gPath, 1, offset("\", gPath)) into field "fieldOpenFile"
- else
- put EMPTY into field "fieldOpenFile"
- set temp to DirectoryToList(field "fieldUserPath")
- repeat with i = 1 to count(temp)
- set nome to getAt(temp, i)
- if (the last char in nome = "\") or (chars(nome, length(nome) - 3, length(nome)) = ".wav") then
- put nome & RETURN after field "fieldOpenFile"
- end if
- end repeat
- delete char -30000 of field "fieldOpenFile"
- set the scrollTop of member "fieldOPenFile" to 0
- end if
- set the foreColor of member "fieldOpenFile" to 0
- set the visible of sprite 24 to 1
- repeat with i = 25 to 31
- set the visible of sprite i to 0
- end repeat
- put getAt(groupList, 1) into field "fieldUserCategory"
- put "128" into field "fieldUserVol"
- put "64" into field "fieldUserPan"
- put EMPTY into field "fieldUserFullName"
- put EMPTY into field "fieldElencoCategory"
- repeat with i = 1 to count(groupList)
- put getAt(groupList, i) & RETURN after field "fieldElencoCategory"
- end repeat
- delete char -30000 of field "fieldElencoCategory"
- set the locV of sprite 36 to 56
- set gFirstLine to 1
- set gTotLine to the number of lines in field "fieldOpenFile"
- end
-