<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: Nesting the MP3 Player in a movieclip.</title>
	<atom:link href="http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.six4rty.ch</link>
	<description>Code &#38; Technology Aficionado - Come for the Flash, stay for more!</description>
	<lastBuildDate>Tue, 07 Feb 2012 13:29:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Derek</title>
		<link>http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/comment-page-1/#comment-105095</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Thu, 29 Sep 2011 13:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/#comment-105095</guid>
		<description>Man, I&#039;m sorry to keep posting.

But I figured out why it was playing twice. I have an animation effect on my flash site where I had to have the same symbol but with different instance names, so basically duplicated the symbol and deleted the mp3 player from the duplicate, and then placed the duplicate in place of the original symbol in the time lime. 

SO everything works great now!

Except for the volume control...ha.

It would be cool to figure out why that isn&#039;t working. 

I&#039;m sure it has something to do with the way it&#039;s being targeted.

I haven&#039;t changed the code at all since my first two posts. So if you see something in the code that I&#039;m doing wrong in terms of the volume, then I would really appreciate it if you told me about it.

Thanks again.


And once again, this is a great mp3 player for as2. Really came in handy.</description>
		<content:encoded><![CDATA[<p>Man, I&#8217;m sorry to keep posting.</p>
<p>But I figured out why it was playing twice. I have an animation effect on my flash site where I had to have the same symbol but with different instance names, so basically duplicated the symbol and deleted the mp3 player from the duplicate, and then placed the duplicate in place of the original symbol in the time lime. </p>
<p>SO everything works great now!</p>
<p>Except for the volume control&#8230;ha.</p>
<p>It would be cool to figure out why that isn&#8217;t working. </p>
<p>I&#8217;m sure it has something to do with the way it&#8217;s being targeted.</p>
<p>I haven&#8217;t changed the code at all since my first two posts. So if you see something in the code that I&#8217;m doing wrong in terms of the volume, then I would really appreciate it if you told me about it.</p>
<p>Thanks again.</p>
<p>And once again, this is a great mp3 player for as2. Really came in handy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/comment-page-1/#comment-105085</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Thu, 29 Sep 2011 08:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/#comment-105085</guid>
		<description>Sorry for before, I was using the html code tag to show you my code but it just greyed everything out. So I re-pasted it down below in regular text.


Any help is very much appreciated. Thank you. 


__________________



stop();
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
	if (success) {
		_global.songname = [];
		_global.songband = [];
		_global.songfile = [];
		for (var i = 0; i&lt;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;
			// trace(songname[i]+&quot;  &quot;+songfile[i]+&quot; &quot;+songband[i]);
		}
	}
	_root.createEmptyMovieClip(&quot;sound_mc&quot;, 1);
	_global.song_nr = random(songfile.length);
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
function timer(sound_obj) {
	time = sound_obj.position/1000;
	min = Math.floor(time/60);
	min = (min&lt;10) ? &quot;0&quot;+min : min;
	sec = Math.floor(time%60);
	sec = (sec0) {
			delete this.onEnterFrame;
			_root.page1.level002.audioPlayer.display_txt.text = name+&quot; / &quot;+band;
			timeInterval = setInterval(timer, 1000, this.sound_obj);
		} else {
			_root.page1.level002.audioPlayer.display_txt.text = &quot;loading...&quot;;
		}
	};
	this.sound_obj.onSoundComplete = function() {
		clearInterval(timeInterval);
		_root.page1.level002.audioPlayer.timeDisplay_txt.text = &quot;00:00&quot;;
		(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
		_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
	};
	_root.page1.level002.audioPlayer.volume1.dragger.onPress = function() {
		startDrag(this, true, 0, this._y, _root.page1.level002.audioPlayer.volBG._width, this._y);
		this.onEnterFrame = function() {
			var p = (this._x/_root.page1.level002.audioPlayer.volBG._width)*100;
			_root.sound_mc.sound_obj.setVolume(p);
		};
	};
	_root.page1.level002.audioPlayer.volume1.dragger.onRelease = function() {
		delete this.onEnterFrame;
		stopDrag();
	};
	_root.page1.level002.audioPlayer.volume1.dragger.onReleaseOutside = function() {
		stopDrag();
	};
};
btn_play.onRelease = function() {
	clearInterval(timeInterval);
	_root.timeDisplay_txt.text = &quot;00:00&quot;;
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
btn_stop.onRelease = function() {
	clearInterval(timeInterval);
	_root.timeDisplay_txt.text = &quot;00:00&quot;;
	_root.sound_mc.sound_obj.stop();
};
btn_fw.onRelease = function() {
	clearInterval(timeInterval);
	this._parent.timeDisplay_txt.text = &quot;00:00&quot;;
	(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
btn_rev.onRelease = function() {
	clearInterval(timeInterval);
	this._parent.timeDisplay_txt.text = &quot;00:00&quot;;
	(song_nr == 0) ? _global.song_nr=songfile.length-1 : _global.song_nr--;
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
playlist.load(&quot;playlist.xml&quot;);</description>
		<content:encoded><![CDATA[<p>Sorry for before, I was using the html code tag to show you my code but it just greyed everything out. So I re-pasted it down below in regular text.</p>
<p>Any help is very much appreciated. Thank you. </p>
<p>__________________</p>
<p>stop();<br />
playlist = new XML();<br />
playlist.ignoreWhite = true;<br />
playlist.onLoad = function(success) {<br />
	if (success) {<br />
		_global.songname = [];<br />
		_global.songband = [];<br />
		_global.songfile = [];<br />
		for (var i = 0; i&lt;playlist.firstChild.childNodes.length; i++) {<br />
			_global.songname[i] = playlist.firstChild.childNodes[i].attributes.name;<br />
			_global.songband[i] = playlist.firstChild.childNodes[i].attributes.band;<br />
			_global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file;<br />
			// trace(songname[i]+&quot;  &quot;+songfile[i]+&quot; &quot;+songband[i]);<br />
		}<br />
	}<br />
	_root.createEmptyMovieClip(&quot;sound_mc&quot;, 1);<br />
	_global.song_nr = random(songfile.length);<br />
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);<br />
};<br />
function timer(sound_obj) {<br />
	time = sound_obj.position/1000;<br />
	min = Math.floor(time/60);<br />
	min = (min&lt;10) ? &quot;0&quot;+min : min;<br />
	sec = Math.floor(time%60);<br />
	sec = (sec0) {<br />
			delete this.onEnterFrame;<br />
			_root.page1.level002.audioPlayer.display_txt.text = name+&#8221; / &#8220;+band;<br />
			timeInterval = setInterval(timer, 1000, this.sound_obj);<br />
		} else {<br />
			_root.page1.level002.audioPlayer.display_txt.text = &#8220;loading&#8230;&#8221;;<br />
		}<br />
	};<br />
	this.sound_obj.onSoundComplete = function() {<br />
		clearInterval(timeInterval);<br />
		_root.page1.level002.audioPlayer.timeDisplay_txt.text = &#8220;00:00&#8243;;<br />
		(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;<br />
		_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);<br />
	};<br />
	_root.page1.level002.audioPlayer.volume1.dragger.onPress = function() {<br />
		startDrag(this, true, 0, this._y, _root.page1.level002.audioPlayer.volBG._width, this._y);<br />
		this.onEnterFrame = function() {<br />
			var p = (this._x/_root.page1.level002.audioPlayer.volBG._width)*100;<br />
			_root.sound_mc.sound_obj.setVolume(p);<br />
		};<br />
	};<br />
	_root.page1.level002.audioPlayer.volume1.dragger.onRelease = function() {<br />
		delete this.onEnterFrame;<br />
		stopDrag();<br />
	};<br />
	_root.page1.level002.audioPlayer.volume1.dragger.onReleaseOutside = function() {<br />
		stopDrag();<br />
	};<br />
};<br />
btn_play.onRelease = function() {<br />
	clearInterval(timeInterval);<br />
	_root.timeDisplay_txt.text = &#8220;00:00&#8243;;<br />
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);<br />
};<br />
btn_stop.onRelease = function() {<br />
	clearInterval(timeInterval);<br />
	_root.timeDisplay_txt.text = &#8220;00:00&#8243;;<br />
	_root.sound_mc.sound_obj.stop();<br />
};<br />
btn_fw.onRelease = function() {<br />
	clearInterval(timeInterval);<br />
	this._parent.timeDisplay_txt.text = &#8220;00:00&#8243;;<br />
	(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;<br />
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);<br />
};<br />
btn_rev.onRelease = function() {<br />
	clearInterval(timeInterval);<br />
	this._parent.timeDisplay_txt.text = &#8220;00:00&#8243;;<br />
	(song_nr == 0) ? _global.song_nr=songfile.length-1 : _global.song_nr&#8211;;<br />
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);<br />
};<br />
playlist.load(&#8220;playlist.xml&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/comment-page-1/#comment-105084</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Thu, 29 Sep 2011 08:23:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/#comment-105084</guid>
		<description>Hey Tiago, great mp3 player by the way. I was looking for as2 xml mp3 player to implement into a flash site that I&#039;m working on for music producers. 

I have it on the music page of the flash site.
The only real issue I have is that when the user initially goes to the music page, two songs play at the same time. I haven&#039;t uploaded it to the server yet, I&#039;ve only tested it locally so far.

When you hit the stop, or the previous or next buttons then only one song plays, which is how it should work, which is good. 

But how do I get it to not play two songs at the same time when the user initially goes to the page?


Also to note, the timer only works when the user initially goes to the music page. After hitting, stop, or previous or next, the timer goes to all zeros and never moves, even though the music is playing. Something tells me that by solving the main issue, of the the two songs playing at the same time when the user initially goes to the music page, will solve this issue as well.

Also, the volume control, is selectable but when you move it, it goes all the way down to mute, and the user can&#039;t bring the volume back up. But this is not so important to me, I was actually going to get rid of the volume control if I couldn&#039;t get it to work. 



&lt;code&gt;

stop();
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
	if (success) {
		_global.songname = [];
		_global.songband = [];
		_global.songfile = [];
		for (var i = 0; i&lt;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;
			// trace(songname[i]+&quot;  &quot;+songfile[i]+&quot; &quot;+songband[i]);
		}
	}
	_root.createEmptyMovieClip(&quot;sound_mc&quot;, 1);
	_global.song_nr = random(songfile.length);
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
function timer(sound_obj) {
	time = sound_obj.position/1000;
	min = Math.floor(time/60);
	min = (min&lt;10) ? &quot;0&quot;+min : min;
	sec = Math.floor(time%60);
	sec = (sec0) {
			delete this.onEnterFrame;
			_root.page1.level002.audioPlayer.display_txt.text = name+&quot; / &quot;+band;
			timeInterval = setInterval(timer, 1000, this.sound_obj);
		} else {
			_root.page1.level002.audioPlayer.display_txt.text = &quot;loading...&quot;;
		}
	};
	this.sound_obj.onSoundComplete = function() {
		clearInterval(timeInterval);
		_root.page1.level002.audioPlayer.timeDisplay_txt.text = &quot;00:00&quot;;
		(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
		_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
	};
	_root.page1.level002.audioPlayer.volume1.dragger.onPress = function() {
		startDrag(this, true, 0, this._y, _root.page1.level002.audioPlayer.volBG._width, this._y);
		this.onEnterFrame = function() {
			var p = (this._x/_root.page1.level002.audioPlayer.volBG._width)*100;
			_root.sound_mc.sound_obj.setVolume(p);
		};
	};
	_root.page1.level002.audioPlayer.volume1.dragger.onRelease = function() {
		delete this.onEnterFrame;
		stopDrag();
	};
	_root.page1.level002.audioPlayer.volume1.dragger.onReleaseOutside = function() {
		stopDrag();
	};
};
btn_play.onRelease = function() {
	clearInterval(timeInterval);
	_root.timeDisplay_txt.text = &quot;00:00&quot;;
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
btn_stop.onRelease = function() {
	clearInterval(timeInterval);
	_root.timeDisplay_txt.text = &quot;00:00&quot;;
	_root.sound_mc.sound_obj.stop();
};
btn_fw.onRelease = function() {
	clearInterval(timeInterval);
	this._parent.timeDisplay_txt.text = &quot;00:00&quot;;
	(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
btn_rev.onRelease = function() {
	clearInterval(timeInterval);
	this._parent.timeDisplay_txt.text = &quot;00:00&quot;;
	(song_nr == 0) ? _global.song_nr=songfile.length-1 : _global.song_nr--;
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);
};
playlist.load(&quot;playlist.xml&quot;);



&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hey Tiago, great mp3 player by the way. I was looking for as2 xml mp3 player to implement into a flash site that I&#8217;m working on for music producers. </p>
<p>I have it on the music page of the flash site.<br />
The only real issue I have is that when the user initially goes to the music page, two songs play at the same time. I haven&#8217;t uploaded it to the server yet, I&#8217;ve only tested it locally so far.</p>
<p>When you hit the stop, or the previous or next buttons then only one song plays, which is how it should work, which is good. </p>
<p>But how do I get it to not play two songs at the same time when the user initially goes to the page?</p>
<p>Also to note, the timer only works when the user initially goes to the music page. After hitting, stop, or previous or next, the timer goes to all zeros and never moves, even though the music is playing. Something tells me that by solving the main issue, of the the two songs playing at the same time when the user initially goes to the music page, will solve this issue as well.</p>
<p>Also, the volume control, is selectable but when you move it, it goes all the way down to mute, and the user can&#8217;t bring the volume back up. But this is not so important to me, I was actually going to get rid of the volume control if I couldn&#8217;t get it to work. </p>
<p><code></p>
<p>stop();<br />
playlist = new XML();<br />
playlist.ignoreWhite = true;<br />
playlist.onLoad = function(success) {<br />
	if (success) {<br />
		_global.songname = [];<br />
		_global.songband = [];<br />
		_global.songfile = [];<br />
		for (var i = 0; i&lt;playlist.firstChild.childNodes.length; i++) {<br />
			_global.songname[i] = playlist.firstChild.childNodes[i].attributes.name;<br />
			_global.songband[i] = playlist.firstChild.childNodes[i].attributes.band;<br />
			_global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file;<br />
			// trace(songname[i]+&quot;  &quot;+songfile[i]+&quot; &quot;+songband[i]);<br />
		}<br />
	}<br />
	_root.createEmptyMovieClip(&quot;sound_mc&quot;, 1);<br />
	_global.song_nr = random(songfile.length);<br />
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);<br />
};<br />
function timer(sound_obj) {<br />
	time = sound_obj.position/1000;<br />
	min = Math.floor(time/60);<br />
	min = (min&lt;10) ? &quot;0&quot;+min : min;<br />
	sec = Math.floor(time%60);<br />
	sec = (sec0) {<br />
			delete this.onEnterFrame;<br />
			_root.page1.level002.audioPlayer.display_txt.text = name+" / "+band;<br />
			timeInterval = setInterval(timer, 1000, this.sound_obj);<br />
		} else {<br />
			_root.page1.level002.audioPlayer.display_txt.text = "loading...";<br />
		}<br />
	};<br />
	this.sound_obj.onSoundComplete = function() {<br />
		clearInterval(timeInterval);<br />
		_root.page1.level002.audioPlayer.timeDisplay_txt.text = "00:00";<br />
		(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;<br />
		_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);<br />
	};<br />
	_root.page1.level002.audioPlayer.volume1.dragger.onPress = function() {<br />
		startDrag(this, true, 0, this._y, _root.page1.level002.audioPlayer.volBG._width, this._y);<br />
		this.onEnterFrame = function() {<br />
			var p = (this._x/_root.page1.level002.audioPlayer.volBG._width)*100;<br />
			_root.sound_mc.sound_obj.setVolume(p);<br />
		};<br />
	};<br />
	_root.page1.level002.audioPlayer.volume1.dragger.onRelease = function() {<br />
		delete this.onEnterFrame;<br />
		stopDrag();<br />
	};<br />
	_root.page1.level002.audioPlayer.volume1.dragger.onReleaseOutside = function() {<br />
		stopDrag();<br />
	};<br />
};<br />
btn_play.onRelease = function() {<br />
	clearInterval(timeInterval);<br />
	_root.timeDisplay_txt.text = "00:00";<br />
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);<br />
};<br />
btn_stop.onRelease = function() {<br />
	clearInterval(timeInterval);<br />
	_root.timeDisplay_txt.text = "00:00";<br />
	_root.sound_mc.sound_obj.stop();<br />
};<br />
btn_fw.onRelease = function() {<br />
	clearInterval(timeInterval);<br />
	this._parent.timeDisplay_txt.text = "00:00";<br />
	(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;<br />
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);<br />
};<br />
btn_rev.onRelease = function() {<br />
	clearInterval(timeInterval);<br />
	this._parent.timeDisplay_txt.text = "00:00";<br />
	(song_nr == 0) ? _global.song_nr=songfile.length-1 : _global.song_nr--;<br />
	_root.sound_mc.songStarter(songfile[song_nr], songname[song_nr], songband[song_nr]);<br />
};<br />
playlist.load("playlist.xml");</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivica</title>
		<link>http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/comment-page-1/#comment-61750</link>
		<dc:creator>Ivica</dc:creator>
		<pubDate>Sat, 31 Oct 2009 20:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/#comment-61750</guid>
		<description>???</description>
		<content:encoded><![CDATA[<p>???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivica</title>
		<link>http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/comment-page-1/#comment-61749</link>
		<dc:creator>Ivica</dc:creator>
		<pubDate>Sat, 31 Oct 2009 20:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/#comment-61749</guid>
		<description>hello,
I put just playlist in a movie clip,
so now I have :
_root.playlist[&quot;but&quot;+i]._x = 5;
_root.playlist[&quot;but&quot;+i]._y = 40+(i*15);

and is the problem with id,

eval(&quot;but&quot;+i).id = i;

so now when i have this:

_root.playlist[&quot;but&quot;+i].onRelease = function() {
_root.sound_mc.songStarter(songfile[this.id]);

it says &quot;undefined&quot;.

Can I solve this somehow else, but putting it ALL in a separate movieClip ?</description>
		<content:encoded><![CDATA[<p>hello,<br />
I put just playlist in a movie clip,<br />
so now I have :<br />
_root.playlist["but"+i]._x = 5;<br />
_root.playlist["but"+i]._y = 40+(i*15);</p>
<p>and is the problem with id,</p>
<p>eval(&#8220;but&#8221;+i).id = i;</p>
<p>so now when i have this:</p>
<p>_root.playlist["but"+i].onRelease = function() {<br />
_root.sound_mc.songStarter(songfile[this.id]);</p>
<p>it says &#8220;undefined&#8221;.</p>
<p>Can I solve this somehow else, but putting it ALL in a separate movieClip ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/comment-page-1/#comment-60844</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 30 Sep 2009 04:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/#comment-60844</guid>
		<description>Hey Tiago, I can tell from your countless number of questions that it will be a little hard for me to get to you, also with the date of this tutorial...But I have a question, that must make a thousand submissions for your help on this particular tutorial.
I have set up my MP3 player and used your code and tutorial as a wonderful reference, but when I load my MP3&#039;s into the XML playlist, I lose the scrolling song title...any advice on this one?</description>
		<content:encoded><![CDATA[<p>Hey Tiago, I can tell from your countless number of questions that it will be a little hard for me to get to you, also with the date of this tutorial&#8230;But I have a question, that must make a thousand submissions for your help on this particular tutorial.<br />
I have set up my MP3 player and used your code and tutorial as a wonderful reference, but when I load my MP3&#8242;s into the XML playlist, I lose the scrolling song title&#8230;any advice on this one?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coen</title>
		<link>http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/comment-page-1/#comment-48160</link>
		<dc:creator>Coen</dc:creator>
		<pubDate>Mon, 15 Dec 2008 15:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/#comment-48160</guid>
		<description>Do you have a working FLA? So I can check what I am doing wrong? Or mayb you forgot to mention something  :$</description>
		<content:encoded><![CDATA[<p>Do you have a working FLA? So I can check what I am doing wrong? Or mayb you forgot to mention something  :$</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coen</title>
		<link>http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/comment-page-1/#comment-48158</link>
		<dc:creator>Coen</dc:creator>
		<pubDate>Mon, 15 Dec 2008 15:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/#comment-48158</guid>
		<description>He tiago,

I did the exact thing here.. but track title still not visible! also the playhead isn&#039;t moving? volume bar neither... :(</description>
		<content:encoded><![CDATA[<p>He tiago,</p>
<p>I did the exact thing here.. but track title still not visible! also the playhead isn&#8217;t moving? volume bar neither&#8230; <img src='http://blog.six4rty.ch/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiago</title>
		<link>http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/comment-page-1/#comment-45638</link>
		<dc:creator>Tiago</dc:creator>
		<pubDate>Mon, 20 Oct 2008 14:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/#comment-45638</guid>
		<description>Tim, thanks a bunch for the nice words, I&#039;m also the kind of person that prefers to create my own stuff instead of go buying components made by someone else. anyway I&#039;m happy that it worked out for you :)</description>
		<content:encoded><![CDATA[<p>Tim, thanks a bunch for the nice words, I&#8217;m also the kind of person that prefers to create my own stuff instead of go buying components made by someone else. anyway I&#8217;m happy that it worked out for you <img src='http://blog.six4rty.ch/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Tilberg</title>
		<link>http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/comment-page-1/#comment-45512</link>
		<dc:creator>Tim Tilberg</dc:creator>
		<pubDate>Sat, 18 Oct 2008 07:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/#comment-45512</guid>
		<description>Wow~~~
Seriously.

THANK YOU.

About 6 months back I was working on learning to make a streaming audio player guy of sorts. 
It used a method that involved making a layer for the sound file, and extending the video&#039;s frame length until the end of the song, and saving seperate .swfs for each song. 

I&#039;m currently working on getting my page online for hosting music me and my friend make, and was going to re-use that media handler I already made...

Flash kept crashing any time I tried to import a &quot;song&quot; into the library --- and when I imported the control video without a song, it was totally disfunctional anyway (scope problems regarding _roots,  I&#039;m certain.)

I went to find solutions - and was coming up dry. I also didn&#039;t want to spend much if any money. I would rather laboriously learn how to make something that someone else sells for $10-$20 (components)

I stumbled across your page after lots of googling... THANK YOU SO MUCH!

This functionality is EXACTLY what I want to be able to apply my custom design stuff, and easily manage files via an XML file (instead of having to update the flash code).

TIAGO! ! ! +1</description>
		<content:encoded><![CDATA[<p>Wow~~~<br />
Seriously.</p>
<p>THANK YOU.</p>
<p>About 6 months back I was working on learning to make a streaming audio player guy of sorts.<br />
It used a method that involved making a layer for the sound file, and extending the video&#8217;s frame length until the end of the song, and saving seperate .swfs for each song. </p>
<p>I&#8217;m currently working on getting my page online for hosting music me and my friend make, and was going to re-use that media handler I already made&#8230;</p>
<p>Flash kept crashing any time I tried to import a &#8220;song&#8221; into the library &#8212; and when I imported the control video without a song, it was totally disfunctional anyway (scope problems regarding _roots,  I&#8217;m certain.)</p>
<p>I went to find solutions &#8211; and was coming up dry. I also didn&#8217;t want to spend much if any money. I would rather laboriously learn how to make something that someone else sells for $10-$20 (components)</p>
<p>I stumbled across your page after lots of googling&#8230; THANK YOU SO MUCH!</p>
<p>This functionality is EXACTLY what I want to be able to apply my custom design stuff, and easily manage files via an XML file (instead of having to update the flash code).</p>
<p>TIAGO! ! ! +1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gonçalo Martins</title>
		<link>http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/comment-page-1/#comment-42137</link>
		<dc:creator>Gonçalo Martins</dc:creator>
		<pubDate>Sat, 23 Aug 2008 01:36:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/#comment-42137</guid>
		<description>I have a doubt... i have succesfully made your xml musicplayer but now i want to put the play, pause and stop buttons... how do i make them to work as they would work in they weren&#039;t in a movieclip?

//Music
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
	if (success) {
		_global.songname = [];
		_global.songband = [];
		_global.songfile = [];
		for (var i = 0; i&lt;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;
		}
	}
	_root.createEmptyMovieClip(&quot;sound_mc&quot;,1);
	_root.sound_mc.sound_obj = new Sound();
	_global.song_nr = random(songfile.length);
	_root.sound_mc.songStarter(songfile[song_nr],songname[song_nr]);
};
MovieClip.prototype.songStarter = function(file, name) {
	this.sound_obj.loadSound(file,true);
};
this.sound_obj.onSoundComplete = function() {
	(song_nr == songfiles.length-1) ? _global.song_nr=0 : _global.song_nr++;
	_root.sound_mc.songStarter(songfiles[song_nr],songname[song_nr]);
};
sfx.btn_play.onRelease = function() {
	if (pause == true) {
		this._parent.sound_mc.sound_obj.start(posiP);
	} else {
		clearInterval(timeInterval);
		this._parent.sound_mc.songStarter(songfile[song_nr]);
	}
};
sfx.btn_stop.onRelease = function() {
	this._parent.sound_mc.sound_obj.stop();
};
sfx.btn_pause.onRelease = function() {
	this._parent.sound_mc.sound_obj.stop();
	posiP = _root.sound_mc.sound_obj.position/1000;
	pause = true;
};
playlist.load(&quot;playlist.xml&quot;);


i tried to use this code but i isn&#039;t working... help anyone?</description>
		<content:encoded><![CDATA[<p>I have a doubt&#8230; i have succesfully made your xml musicplayer but now i want to put the play, pause and stop buttons&#8230; how do i make them to work as they would work in they weren&#8217;t in a movieclip?</p>
<p>//Music<br />
playlist = new XML();<br />
playlist.ignoreWhite = true;<br />
playlist.onLoad = function(success) {<br />
	if (success) {<br />
		_global.songname = [];<br />
		_global.songband = [];<br />
		_global.songfile = [];<br />
		for (var i = 0; i&lt;playlist.firstChild.childNodes.length; i++) {<br />
			_global.songname[i] = playlist.firstChild.childNodes[i].attributes.name;<br />
			_global.songband[i] = playlist.firstChild.childNodes[i].attributes.band;<br />
			_global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file;<br />
		}<br />
	}<br />
	_root.createEmptyMovieClip(&#8220;sound_mc&#8221;,1);<br />
	_root.sound_mc.sound_obj = new Sound();<br />
	_global.song_nr = random(songfile.length);<br />
	_root.sound_mc.songStarter(songfile[song_nr],songname[song_nr]);<br />
};<br />
MovieClip.prototype.songStarter = function(file, name) {<br />
	this.sound_obj.loadSound(file,true);<br />
};<br />
this.sound_obj.onSoundComplete = function() {<br />
	(song_nr == songfiles.length-1) ? _global.song_nr=0 : _global.song_nr++;<br />
	_root.sound_mc.songStarter(songfiles[song_nr],songname[song_nr]);<br />
};<br />
sfx.btn_play.onRelease = function() {<br />
	if (pause == true) {<br />
		this._parent.sound_mc.sound_obj.start(posiP);<br />
	} else {<br />
		clearInterval(timeInterval);<br />
		this._parent.sound_mc.songStarter(songfile[song_nr]);<br />
	}<br />
};<br />
sfx.btn_stop.onRelease = function() {<br />
	this._parent.sound_mc.sound_obj.stop();<br />
};<br />
sfx.btn_pause.onRelease = function() {<br />
	this._parent.sound_mc.sound_obj.stop();<br />
	posiP = _root.sound_mc.sound_obj.position/1000;<br />
	pause = true;<br />
};<br />
playlist.load(&#8220;playlist.xml&#8221;);</p>
<p>i tried to use this code but i isn&#8217;t working&#8230; help anyone?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joey</title>
		<link>http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/comment-page-1/#comment-42122</link>
		<dc:creator>Joey</dc:creator>
		<pubDate>Fri, 22 Aug 2008 21:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.six4rty.ch/tutorials/flash-create-a-full-streaming-flash-mp3-player-using-xml-pt-3/nesting-the-mp3-player-in-a-movieclip/#comment-42122</guid>
		<description>I need a playlist selector. 

I would like to be able to pick which playlist is loaded to the player from a dropdown list. I am no expert and any help is greatly appreciated.Thanks in advance.</description>
		<content:encoded><![CDATA[<p>I need a playlist selector. </p>
<p>I would like to be able to pick which playlist is loaded to the player from a dropdown list. I am no expert and any help is greatly appreciated.Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

