<?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/"
		>
<channel>
	<title>Comments on: ActionScript 3 XML MP3 Player 1.2</title>
	<atom:link href="http://simplistika.com/actionscript-3-xml-mp3-player-update-11/feed/" rel="self" type="application/rss+xml" />
	<link>http://simplistika.com/actionscript-3-xml-mp3-player-update-11/</link>
	<description>Think Simple</description>
	<lastBuildDate>Wed, 07 Jul 2010 22:23:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jared</title>
		<link>http://simplistika.com/actionscript-3-xml-mp3-player-update-11/comment-page-2/#comment-675</link>
		<dc:creator>jared</dc:creator>
		<pubDate>Sat, 08 May 2010 00:01:38 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=72#comment-675</guid>
		<description>try installing something like WAMP to enable a localhost web server.www.wampserver.com/en/</description>
		<content:encoded><![CDATA[<p>try installing something like WAMP to enable a localhost web server.www.wampserver.com/en/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: navibd</title>
		<link>http://simplistika.com/actionscript-3-xml-mp3-player-update-11/comment-page-2/#comment-668</link>
		<dc:creator>navibd</dc:creator>
		<pubDate>Thu, 29 Apr 2010 00:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=72#comment-668</guid>
		<description>thx. I have a simple question. how can i change to play from local host.I mean from hard drive?</description>
		<content:encoded><![CDATA[<p>thx. I have a simple question. how can i change to play from local host.I mean from hard drive?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://simplistika.com/actionscript-3-xml-mp3-player-update-11/comment-page-2/#comment-658</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Mon, 22 Mar 2010 21:10:33 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=72#comment-658</guid>
		<description>Hi Jared,

I just forked over some cash for your AS3 XML MP3 Player PRO, don&#039;t spend it all at once :) The clean code has been very helpfull for me, thanks man.

I was looking through the code and opened the spectrum class. I cannot quite wrap my head around the SoundMixer.computeSpectrum(mSpectrum) / mSpectrum.readFloat() statements.

this is what i get:
* fUpdate is called every frame en generates a &#039;SoundMixer.computeSpectrum&#039; which is stored in ByteArray &#039;mSpectrum&#039;
* &#039;mBMP.fillRect(mBMP.rect, 0x000000);&#039; &lt;-- draws a black rectangle to prevent spectrums overlapping.
* &#039;for (var i:int=0; i&lt;mWidth; i++)
		mBMP.setPixel32(i, 10 + mSpectrum.readFloat() * 20, 0xAAAAAAAA);&#039; &lt;-- This for-loop draws a &#039;mWidth&#039;-amount of pixels with a 1px horizontal increment and a (for me) mysterious Y position.

The part i don&#039;t understand is how the &#039;wave&#039; pattern is generated. The Y-position of the setPixel32 is set by &#039;mSpectrum.readFloat() * 20&#039;. I would expect this to give the same Y value for the entire for-loop (thus creating a horizontal line). Obviously it doesn&#039;t and the &#039;wave&#039; pattern or spectrum is created. This means the &#039;mSpectrum.readFloat()&#039; value changes during the for loop, doesn&#039;t it? Could you help me explain what exactly this readFloat does and how this results in the different Y positions within the same for-loop?

Hopefully my question is clear.
Thanks in advance for any answers.

greatings,

Tom from The Netherlands</description>
		<content:encoded><![CDATA[<p>Hi Jared,</p>
<p>I just forked over some cash for your AS3 XML MP3 Player PRO, don&#8217;t spend it all at once <img src='http://simplistika.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The clean code has been very helpfull for me, thanks man.</p>
<p>I was looking through the code and opened the spectrum class. I cannot quite wrap my head around the SoundMixer.computeSpectrum(mSpectrum) / mSpectrum.readFloat() statements.</p>
<p>this is what i get:<br />
* fUpdate is called every frame en generates a &#8216;SoundMixer.computeSpectrum&#8217; which is stored in ByteArray &#8216;mSpectrum&#8217;<br />
* &#8216;mBMP.fillRect(mBMP.rect, 0&#215;000000);&#8217; &lt;&#8211; draws a black rectangle to prevent spectrums overlapping.<br />
* &#039;for (var i:int=0; i&lt;mWidth; i++)<br />
		mBMP.setPixel32(i, 10 + mSpectrum.readFloat() * 20, 0xAAAAAAAA);&#039; &lt;&#8211; This for-loop draws a &#039;mWidth&#039;-amount of pixels with a 1px horizontal increment and a (for me) mysterious Y position.</p>
<p>The part i don&#039;t understand is how the &#039;wave&#039; pattern is generated. The Y-position of the setPixel32 is set by &#039;mSpectrum.readFloat() * 20&#039;. I would expect this to give the same Y value for the entire for-loop (thus creating a horizontal line). Obviously it doesn&#039;t and the &#039;wave&#039; pattern or spectrum is created. This means the &#039;mSpectrum.readFloat()&#039; value changes during the for loop, doesn&#039;t it? Could you help me explain what exactly this readFloat does and how this results in the different Y positions within the same for-loop?</p>
<p>Hopefully my question is clear.<br />
Thanks in advance for any answers.</p>
<p>greatings,</p>
<p>Tom from The Netherlands</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jared</title>
		<link>http://simplistika.com/actionscript-3-xml-mp3-player-update-11/comment-page-2/#comment-486</link>
		<dc:creator>jared</dc:creator>
		<pubDate>Tue, 13 Oct 2009 11:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=72#comment-486</guid>
		<description>no, com.simplistika simply refers to the folder in which the .as files are placed. All you have to change is your xml file and republish with CTRL + Enter.</description>
		<content:encoded><![CDATA[<p>no, com.simplistika simply refers to the folder in which the .as files are placed. All you have to change is your xml file and republish with CTRL + Enter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: natural</title>
		<link>http://simplistika.com/actionscript-3-xml-mp3-player-update-11/comment-page-2/#comment-467</link>
		<dc:creator>natural</dc:creator>
		<pubDate>Fri, 09 Oct 2009 04:05:31 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=72#comment-467</guid>
		<description>Hey what do i change the (package com.simplistika)  to? Do I put my site name? Also what else do I need to change throughout the file? I would appreciate the help. By the way, cool player :)</description>
		<content:encoded><![CDATA[<p>Hey what do i change the (package com.simplistika)  to? Do I put my site name? Also what else do I need to change throughout the file? I would appreciate the help. By the way, cool player <img src='http://simplistika.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pedro polar</title>
		<link>http://simplistika.com/actionscript-3-xml-mp3-player-update-11/comment-page-2/#comment-289</link>
		<dc:creator>pedro polar</dc:creator>
		<pubDate>Fri, 25 Sep 2009 23:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=72#comment-289</guid>
		<description>In order to display the artist and songs names your xml file must look like this:
http://www.simplistika.com/files/as3mp3/playlistpro.xml

thanks for the mp3 player

thanks a lot mi amigo!</description>
		<content:encoded><![CDATA[<p>In order to display the artist and songs names your xml file must look like this:<br />
<a href="http://www.simplistika.com/files/as3mp3/playlistpro.xml" rel="nofollow">http://www.simplistika.com/files/as3mp3/playlistpro.xml</a></p>
<p>thanks for the mp3 player</p>
<p>thanks a lot mi amigo!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flower</title>
		<link>http://simplistika.com/actionscript-3-xml-mp3-player-update-11/comment-page-2/#comment-288</link>
		<dc:creator>flower</dc:creator>
		<pubDate>Mon, 21 Sep 2009 10:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=72#comment-288</guid>
		<description>Hi!! I love it! but I can´t set it to stop playing when it starts , can you help me please?
I´ve already uncommented the 3 lines but no success.

Thanks a lot!!!</description>
		<content:encoded><![CDATA[<p>Hi!! I love it! but I can´t set it to stop playing when it starts , can you help me please?<br />
I´ve already uncommented the 3 lines but no success.</p>
<p>Thanks a lot!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricky</title>
		<link>http://simplistika.com/actionscript-3-xml-mp3-player-update-11/comment-page-2/#comment-287</link>
		<dc:creator>Ricky</dc:creator>
		<pubDate>Tue, 08 Sep 2009 17:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=72#comment-287</guid>
		<description>How do you get this to play random songs</description>
		<content:encoded><![CDATA[<p>How do you get this to play random songs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://simplistika.com/actionscript-3-xml-mp3-player-update-11/comment-page-2/#comment-285</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Fri, 14 Aug 2009 07:36:41 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=72#comment-285</guid>
		<description>String(mData.mp3[vTrack].artist and String(mData.mp3[vTrack].title were returning nothing, I made a slight alteration.

private function DispSongInfo (vTrack : int) {
    txtDisplay.text = String(mData.mp3[vTrack].url);
}

In fStart, added call to the new function:

DispSongInfo(0) ;

Also, in fLoad:

DispSongInfo(vTrack) ;

I saw that someone didn&#039;t want the set of mp3s to loop once they are all done playing.  that shouldn&#039;t be too hard.

In fOnComplete(), the call to fLoad() is unconditional.

This means that a song is going to be loaded and played no matter what.  The following version will NOT replay the song list after the last song has completed.

private function fOnComplete(e : Event) : void
{
	if (txtRepeat.text == &quot;REPEAT ON&quot;)
		mChannel.stop();
		fLoad(mTrack,0);
	else
	{
		mTrack++;
		mChannel.stop();
		if (mTrack &lt;= mItems - 1)
			fLoad(mTrack,0);
	}

}

Of course, a better solution would be to add a looping ON/OFF control and let user toggle the setting with a mouse click.</description>
		<content:encoded><![CDATA[<p>String(mData.mp3[vTrack].artist and String(mData.mp3[vTrack].title were returning nothing, I made a slight alteration.</p>
<p>private function DispSongInfo (vTrack : int) {<br />
    txtDisplay.text = String(mData.mp3[vTrack].url);<br />
}</p>
<p>In fStart, added call to the new function:</p>
<p>DispSongInfo(0) ;</p>
<p>Also, in fLoad:</p>
<p>DispSongInfo(vTrack) ;</p>
<p>I saw that someone didn&#8217;t want the set of mp3s to loop once they are all done playing.  that shouldn&#8217;t be too hard.</p>
<p>In fOnComplete(), the call to fLoad() is unconditional.</p>
<p>This means that a song is going to be loaded and played no matter what.  The following version will NOT replay the song list after the last song has completed.</p>
<p>private function fOnComplete(e : Event) : void<br />
{<br />
	if (txtRepeat.text == &#8220;REPEAT ON&#8221;)<br />
		mChannel.stop();<br />
		fLoad(mTrack,0);<br />
	else<br />
	{<br />
		mTrack++;<br />
		mChannel.stop();<br />
		if (mTrack &lt;= mItems &#8211; 1)<br />
			fLoad(mTrack,0);<br />
	}</p>
<p>}</p>
<p>Of course, a better solution would be to add a looping ON/OFF control and let user toggle the setting with a mouse click.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Filemon</title>
		<link>http://simplistika.com/actionscript-3-xml-mp3-player-update-11/comment-page-2/#comment-284</link>
		<dc:creator>Filemon</dc:creator>
		<pubDate>Thu, 13 Aug 2009 23:42:47 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=72#comment-284</guid>
		<description>Good luck getting help here!</description>
		<content:encoded><![CDATA[<p>Good luck getting help here!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
