home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- if field "fieldElencoSynthCD" <> EMPTY then
- repeat while the mouseDown
- set the memberNum of sprite the clickOn to the number of member "Htransfer all"
- updateStage()
- end repeat
- end if
- end
-
- on mouseUp
- global gPath, gPathSynth, loadSynthList, folderSynthList
- if field "fieldElencoSynthCD" <> EMPTY then
- cursor(4)
- set the memberNum of sprite the clickOn to the number of member "transfer all"
- updateStage()
- set temp to []
- repeat with i = 1 to the number of lines in field "fieldElencoSynthCD"
- set synth to line i of field "fieldElencoSynthCD"
- if DirectoryExists(gPath & "Synth\" & synth & "\") <> 0 then
- append(temp, synth)
- end if
- end repeat
- if temp <> [] then
- set loadSynthList to []
- set dim to 380 * count(temp)
- if IKGetFreeDiskSpace(chars(gPath, 1, offset("\", gPath))) < (dim + 10000) then
- openWin("Message")
- tell window "Message"
- go("12")
- end tell
- else
- set the foreColor of member "fieldElencoSynthCD" to 0
- repeat with i = 1 to count(temp)
- if length(getAt(temp, i)) > 0 then
- CreateDirectory(gPath & "Synth\" & getAt(temp, i) & "\")
- CopyDirectory(gPathSynth & getAt(temp, i) & "\", gPath & "Synth\" & getAt(temp, i) & "\")
- put getAt(temp, i) into line the lineCount of member "fieldElencoSynth" + 1 of field "fieldElencoSynth"
- append(folderSynthList, chars(getAt(temp, i), 1, length(getAt(temp, i))))
- end if
- end repeat
- sort(folderSynthList)
- put EMPTY into field "fieldElencoSynth"
- repeat with i = 1 to count(folderSynthList)
- put getAt(folderSynthList, i) into line i of field "fieldElencoSynth"
- end repeat
- set the scrollTop of member "fieldElencoSynth" to 0
- set the foreColor of member "fieldElencoSynth" to 0
- set the textFont of field "fieldElencoSynth" to "IK10"
- updateStage()
- end if
- end if
- cursor(-1)
- end if
- end
-