Jump to content


funkysoul's mp3 player


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

#1 kbyron01

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 01 April 2006 - 10:29 AM

Hi everyone I am new here, maybe someone or funkysoul can help me.

I built my own player graphically and used the code that he had in the tutorial... which was amazing i must say, very good tutorial. The problem that I am running into is with the _global.song_nr = random(songfile.length); string. I need my tracks to play in the order I have them defined in the playlist.xml file. I have changed the next line _root.sound_mc.songStarter(songfile[song_nr], songname[song_nr]); to be _root.sound_mc.songStarter(songfile[0], songname[0]); and that made the first track in the playlist always play first. However the following songs are still random and sometimes track 0 plays again due to the random string. I am not sure what needs to be altered to allow the tracks to play in the order defined in the xml file. Most things I try end up returning no output. This is a very important project that I am working on for a new band who just signed to Capitol, and unfortunatly I am pretty new to flash, but have working knowledge of it, and have expert knowledge in most other areas. Hoping someone can help. I know that _gobal.song_nr = is very important because the controls rely on song_nr to work properly... but I am not sure what needs to be changed...

Thanks a lot.. hope to hear from some of you who may have had a similar problem.

#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 01 April 2006 - 11:36 AM

Already been answered :P

http://www.pixel2life.com/forums/index.php...ndpost&p=101387

#3 kbyron01

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 01 April 2006 - 11:44 AM

View Postfunkysoul, on Apr 1 2006, 11:36 AM, said:


thanks a lot.. that worked.. also it seems to not continue on to the next song after the last has finished playing. any ideas?

#4 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 01 April 2006 - 11:46 AM

and once more :P

http://www.pixel2life.com/forums/index.php...ndpost&p=130578





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users