Jump to content


Player with xml playlist


  • You cannot reply to this topic
3 replies to this topic

#1 WaveZ

    Young Padawan

  • Members
  • Pip
  • 15 posts
  • Gender:Male
  • Location:Chandler

Posted 21 May 2006 - 12:23 PM

Hello, :)

I have two problems:
-When i add more than 3 songs in my xml playlist, the other song is at the wrong place :mellow:
-When i click on the song in the player the title and the band of the song appear like this : undefined/undefined :(


There is the .fla

I hope than somebody can help me :D

Thank you, WaveZ :D

#2 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 21 May 2006 - 12:43 PM

1) remove this lines
if (i >= 3){
_root["but"+i]._x = 160
_root["but"+i]._y = -5 + (i*15);
}

in your button.onRelease action put this line:
this._parent.sound_mc.songStarter(songfile[song_nr],songname[song_nr]);


#3 WaveZ

    Young Padawan

  • Members
  • Pip
  • 15 posts
  • Gender:Male
  • Location:Chandler

Posted 21 May 2006 - 01:49 PM

I have place the last code here:
attachMovie("butTemp","but"+i,i+50);
		eval("but"+i).id=i;
		_root["but"+i]._x = 300;
		_root["but"+i]._y = 250 + (i*15);
		_root["but"+i].but_txt.text = songname[i];
		_root["but"+i].onRelease = function(){
			this._parent.sound_mc.songStarter(songfile[song_nr],songname[song_nr]);
			clearInterval(timeInterval);
			_root.timeDisplay_txt.text = "00:00";
			_root.sound_mc.songStarter(songfile[this.id]);
		}
:D
But it is not work....
I think i have place the code at the wrong place :mellow:

Thank, wavez :)

Edited by WaveZ, 23 May 2006 - 12:03 PM.


#4 WaveZ

    Young Padawan

  • Members
  • Pip
  • 15 posts
  • Gender:Male
  • Location:Chandler

Posted 25 June 2006 - 05:33 PM

Hi,

Im back whit the same problem, I have started a new MP3 Player and have the Undefined/Undefined title when I clik on the Title of the song. I have place the code on my last post.

Thank to help :D





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users