home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global delSynthList
- if delSynthList <> [] then
- repeat while the mouseDown
- set the memberNum of sprite the clickOn to the number of member "Hdelete"
- updateStage()
- end repeat
- end if
- end
-
- on mouseUp
- global gPath, delSynthList, folderSynthList
- if delSynthList <> [] then
- cursor(4)
- set the memberNum of sprite the clickOn to the number of member "delete"
- updateStage()
- repeat with i = 1 to count(delSynthList)
- set folder to gPath & "Synth\" & getAt(delSynthList, i) & "\"
- set temp to DirectoryToList(folder)
- repeat with j = 1 to count(temp)
- IKChangeAttrib(folder & getAt(temp, j))
- DeleteFile(folder & getAt(temp, j))
- end repeat
- DeleteDirectory(folder)
- deleteAt(folderSynthList, getPos(folderSynthList, getAt(delSynthList, i)))
- end repeat
- put EMPTY into field "fieldElencoSynth"
- repeat with i = 1 to count(folderSynthList)
- put getAt(folderSynthList, i) & RETURN after field "fieldElencoSynth"
- end repeat
- set the scrollTop of member "fieldElencoSynth" to 0
- set the textFont of member "fieldElencoSynth" to "IK10"
- set the foreColor of member "fieldElencoSynth" to 0
- updateStage()
- set delSynthList to []
- cursor(-1)
- end if
- end
-