home *** CD-ROM | disk | FTP | other *** search
- on mouseEnter
- if the visible of window "HelpM" then
- tell window "HelpM"
- go("menuSong4")
- end tell
- end if
- end
-
- on mouseLeave
- if the visible of window "HelpM" then
- tell window "HelpM"
- go("start")
- end tell
- end if
- end
-
- on mouseDown
- global gClick, gSong
- if not (the visible of window "HelpM") then
- if (gClick = "cd") and (gSong <> EMPTY) then
- repeat while the mouseDown
- set the memberNum of sprite 18 to the number of member "Htransfer"
- updateStage()
- end repeat
- end if
- end if
- end
-
- on mouseUp
- global gClick, gSong, gSize, gPath, gCD, gBlue, gVers
- if not (the visible of window "HelpM") then
- if (gClick = "cd") and (gSong <> EMPTY) then
- set the memberNum of sprite 18 to the number of member "transferCd"
- updateStage()
- cursor(4)
- if DirectoryExists(gPath & "Song\" & gSong) = 0 then
- openWin("Message")
- tell window "Message"
- go("3")
- end tell
- else
- if IKGetFreeDiskSpace(chars(gPath, 1, offset("\", gPath))) < (gSize + 10000) then
- openWin("Message")
- tell window "Message"
- go("4")
- end tell
- else
- stop(member "preview")
- set the visible of sprite 48 to 1
- CreateDirectory(gPath & "Song\" & gSong)
- case gVers of
- "1.2":
- set path to gCD & "Library\Song\" & gSong & "\"
- "1.1":
- set path to gCD & "Library\Song\Song44\" & gSong & "\"
- end case
- set fileList to DirectoryToList(path)
- set numFile to count(fileList)
- repeat with i = 1 to count(fileList)
- set nameFile to getAt(fileList, i)
- CopyFile(path & nameFile, gPath & "Song\" & gSong & "\" & nameFile)
- set bar to "bar" & integer(38 * (i - 1) / numFile)
- set the memberNum of sprite 48 to the number of member bar
- updateStage()
- end repeat
- set the visible of sprite 48 to 0
- if gVers = "1.1" then
- DeleteFile(gPath & "Song\" & gSong & "\info.gms")
- set theFile to field gSong
- set newFile to gPath & "Song\" & gSong & "\info.gms"
- set temp to IKCryptCreate(newFile)
- repeat with k = 1 to the number of lines in theFile
- set stringa to line k of theFile
- IKCryptPuts(temp, stringa)
- end repeat
- IKCryptClose(temp)
- end if
- set temp to []
- repeat with i = 1 to the lineCount of member "fieldElencoSongHD"
- append(temp, line i of field "fieldElencoSongHD")
- end repeat
- append(temp, gSong)
- sort(temp)
- put EMPTY into field "fieldElencoSongHD"
- repeat with i = 1 to count(temp)
- put getAt(temp, i) into line i of field "fieldElencoSongHD"
- if getAt(temp, i) = gSong then
- set the foreColor of line i of field "fieldElencoSongHD" to gBlue
- next repeat
- end if
- set the foreColor of line i of field "fieldElencoSongHD" to 0
- end repeat
- set the textFont of field "fieldElencoSongHD" to "IK10"
- set the foreColor of member "fieldElencoSongCD" to 0
- end if
- end if
- cursor(-1)
- end if
- end if
- end
-