Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
sample = "001 Don't Worry Be Happy";
filename = sample+".mp3";
s = new Sound();
s.onLoad = function(success) {
if (success) {
display.message_text = "";
display.current_text = "0:00";
display.separator_text = "|";
total_minutes = Math.floor(s.duration/60000);
total_seconds = Math.floor((s.duration-total_minutes*60000)/1000);
if (total_seconds<10) {
total_seconds = "0"+total_seconds;
}
trace(s.id3.songname);
trace(s.id3.artist);
trace(s.id3.album);
trace(s.id3.year);
trace(s.id3.comment);
trace(s.id3.genre);
// Ausgabe in Textfelder
songname = s.id3.songname;
artist = s.id3.artist;
album = s.id3.album;
year = musik.id3.year;
comment = musik.id3.comment;
track = musik.id3.track;
genre = musik.id3.genre;
display.total_text = total_minutes+":"+total_seconds;
initialized = true;
}
// end if
};
s.onSoundComplete = function() {
play.gotoAndStop(1);
cue = 0;
display.current_text = "0:00";
slider.knob._x = 0;
playing = false;
};
initialized = false;
playing = false;
cue = 0;
stop();