home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global loadSynthList
- if loadSynthList <> [] then
- repeat while the mouseDown
- set the memberNum of sprite the clickOn to the number of member "Htransfer"
- updateStage()
- end repeat
- end if
- end
-
- on mouseUp
- global gPath, gPathSynth, loadSynthList, folderSynthList
- if loadSynthList <> [] then
- cursor(4)
- set the memberNum of sprite the clickOn to the number of member "transfer"
- updateStage()
- set temp to []
- repeat with i = 1 to count(loadSynthList)
- if DirectoryExists(gPath & "Synth\" & getAt(loadSynthList, i) & "\") <> 0 then
- append(temp, getAt(loadSynthList, i))
- 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
- repeat with i = 1 to count(temp)
- CreateDirectory(gPath & "Synth\" & getAt(temp, i) & "\")
- CopyDirectory(gPathSynth & getAt(temp, i) & "\", gPath & "Synth\" & getAt(temp, i) & "\")
- append(folderSynthList, chars(getAt(temp, i), 1, length(getAt(temp, i))))
- sort(folderSynthList)
- end repeat
- 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 textFont of field "fieldElencoSongHD" to "IK10"
- set the foreColor of member "fieldElencoSynth" to 0
- set the textFont of field "fieldElencoSynth" to "IK10"
- updateStage()
- set the foreColor of member "fieldElencoSynthCD" to 0
- end if
- end if
- cursor(-1)
- end if
- end
-