PDA

Volledige versie bekijken : ID3 tags


Phoenix3
%Europe/Berlin %720 %2007, 18:17
bg_sound.onID3 = function() {
root.title_txt.text = this.id3.songname;
root.artist_txt.text = this.id3.artist;
}

weet iemand wrm dit niet werkt in de .flv en NIET in de .swf ??

Thierry
%Europe/Berlin %735 %2007, 18:39
Laat je hele code eens zien.

Phoenix3
%Europe/Berlin %842 %2007, 21:12
function playSong(song){
var bg_sound:Sound = new Sound();
bg_sound.loadSound(song, true);


bg_sound.onLoad = function(aSucces:Boolean){
if(aSucces){
this.stop();
} else {
trace("mp3 not loaded");
}
}
this.onEnterFrame = function(){
var position = Math.round(bg_sound.position/1000);
var duration = Math.round(bg_sound.duration/1000);
var tijd =Math.round((bg_sound.position/1000)/(bg_sound.duration/1000)*100)

//root.time_txt.text = position + " / " + duration;
root.time_txt.text = tijd + "%";
}

bg_sound.onID3 = function() {
root.title_txt.text = this.id3.songname;
root.artist_txt.text = this.id3.artist;

/*for (var prop in this.id3) {
trace("prop:" + prop + " : " + this.id3[prop]);
}*/

}
play_mc.onRelease = function() {
var numSecondsOffset:Number = (bg_sound.position/1000);
bg_sound.start(numSecondsOffset);
}
pauze_mc.onRelease = function() {
stopAllSounds();
}
}