 |
|
BaselScript |
Beschreibung
mp3-Datei herunterladen
download music = file_name url = #url directory = directory_name
Beispiel 1:
#url = "http://www.baselscript.com/music_example/"
#directory = "/APPDIR/music/"
#name = “mozart.mp3”
#url = $concat(#url+#name)
download music=#name url=#url directory=#directory
Beispiel 2:
scene=1 name="download mp3" bgcolor=transparent
section init
#url = "http://www.baselscript.com/music_example/"
#directory = "/APPDIR/music/"
call dialog = dia
end section
dialog dia
tile=title text="Please enter sound name ( for example - xxx.mp3)"
tile = input name = #name
tile = button text = download section = dld
tile = button text = cancel section = cancel
end dialog
// actions for buttons
section dld
#link = $concat(#url+#name)
trace #link
download music= #name url= #link directory= #directory
end section
section download_done
#t = $concat(#name+ " was downloaded")
message #t
call scene = 1
end section
section cancel
call script = selectproject
end section
end scene