home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- repeat while the mouseDown
- set the memberNum of sprite the clickOn to the number of member "Hcd"
- updateStage()
- end repeat
- end
-
- on mouseUp
- global gCD, gPathSynth
- cursor(4)
- set the memberNum of sprite the clickOn to the number of member "cd"
- updateStage()
- if (DirectoryToList(gCD) = []) or (DirectoryToList(gCD) = VOID) then
- put EMPTY into field "fieldElencoSynthCD"
- openWin("Message")
- tell window "Message"
- go("2")
- end tell
- else
- put EMPTY into field "fieldElencoSynthCD"
- set tList to DirectoryToList(gCD & "Library\Song\")
- if getPos(tList, "Song22\") and getPos(tList, "Song44\") then
- set gVers to "1.1"
- else
- set gVers to "1.2"
- end if
- case gVers of
- "1.1":
- set gPathSynth to gCD & "Library\Synth\Synth44\"
- "1.2":
- set gPathSynth to gCD & "Library\Synth\"
- end case
- set tList to DirectoryToList(gPathSynth)
- if tList = [] then
- openWin("Message")
- tell window "Message"
- go("14")
- end tell
- else
- repeat with i = 1 to count(tList)
- put chars(getAt(tList, i), 1, length(getAt(tList, i)) - 1) & RETURN after field "fieldElencoSynthCD"
- end repeat
- set the textFont of member "fieldElencoSynthCD" to "IK10"
- set the foreColor of member "fieldElencoSynthCD" to 0
- end if
- end if
- set the scrollTop of member "fieldElencoSynthCD" to 0
- cursor(-1)
- end
-