XML MP3 Player

This is a discussion on "XML MP3 Player" within the Flash & Multimedia Forum section. This forum, and the thread "XML MP3 Player are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 5th, 2007, 12:29
New Member
Join Date: Sep 2007
Location: England
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question XML MP3 Player

Hi Guys,

I am building my first Flash website and need a XML mp3 player in it. I have been following this tutorial.

pt1 - http://blog.six4rty.ch/tutorials/fla...sing-xml-pt-1/
pt2 -http://blog.six4rty.ch/tutorials/fla...sing-xml-pt-2/
pt3 -http://blog.six4rty.ch/tutorials/fla...sing-xml-pt-3/

the player in the '"music page" of the site that i am creating
i have placed the player at the beginning of the site, so that the music doesn't reload every time the music page it shown. I then set all the movie clips and buttons to become invisible unless you are on the music page.

** Question
ok finally to the problem that i am having. The code creates a play list menu from the XML file it works great but once it is loaded it overlays everything through the site. does anyone know a way to load this play list into a Movie Clip so i can show and hide it? or is there a better way of doing it?


** Play List Code
Quote:
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
if (success) {
_global.songname = [];
_global.songband = [];
_global.songfile = [];
for (var i = 0; i<playlist.firstChild.childNodes.length; i++) {
_global.songname[i] = playlist.firstChild.childNodes[i].attributes.name;
_global.songband[i] = playlist.firstChild.childNodes[i].attributes.band;
_global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file;
attachMovie("butTemp","but"+i,i+50);
eval("but"+i).id=i;
_root["but"+i]._x = 120;
_root["but"+i]._y = 225 + (i*25);
_root["but"+i].but_txt.text = songname[i];
if (i >= 3){
_root["but"+i]._x = 300
_root["but"+i]._y = 150 + (i*25);
}
if (i >= 6){
_root["but"+i]._x = 480
_root["but"+i]._y = 75 + (i*25);
}
_root["but"+i].onRelease = function(){
clearInterval(timeInterval);
_root.timeDisplay_txt.text = "00:00/00:00";
_root.sound_mc.songStarter(songfile[this.id]);
}
}
}
_root.createEmptyMovieClip("sound_mc", 1);
_global.song_nr = random(songfile.length);
_root.sound_mc.songStarter(songfile[song_nr]);
};
Many Thanks
Mark
Reply With Quote

Reply

Tags
flash, mp3, player, xml

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
MP3 Player HELP Aaron1988 Flash & Multimedia Forum 11 Feb 29th, 2008 19:20
EXE Player cody123 Scripts and Online Services 4 Jan 7th, 2008 06:18
DVD Player Monie Webforumz Cafe 11 Aug 14th, 2007 06:43
Guess the player Daniel Webforumz Cafe 39 Aug 13th, 2007 23:55
help with flash player 9 petester8 Introduce Yourself 6 Apr 24th, 2007 09:28


All times are GMT. The time now is 20:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43