<?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: Tutorial &#124; Create a AS3 / Flash 9 MP3 Player with spectrum display</title>
	<atom:link href="http://www.flashenabledblog.com/2008/05/28/tutorial-create-a-as3-flash-9-mp3-player-with-spectrum-display/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flashenabledblog.com/2008/05/28/tutorial-create-a-as3-flash-9-mp3-player-with-spectrum-display/</link>
	<description>A Blog covering Air, Flash, Flex, Illustrator and Photoshop</description>
	<lastBuildDate>Sun, 11 Sep 2011 02:17:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Michael</title>
		<link>http://www.flashenabledblog.com/2008/05/28/tutorial-create-a-as3-flash-9-mp3-player-with-spectrum-display/comment-page-1/#comment-1133</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 25 Jul 2009 07:19:39 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/?p=1398#comment-1133</guid>
		<description>what a mess..Look at all those crazy functions. If you use this tutorial, replace all those crazy functions with this structure instead:

stop_btn.addEventListener(MouseEvent.MOUSE_DOWN, managePlayerControls);
play_btn.addEventListener(MouseEvent.MOUSE_DOWN, managePlayerControls);
pause_btn.addEventListener(MouseEvent.MOUSE_DOWN, managePlayerControls);
next_btn.addEventListener(MouseEvent.MOUSE_DOWN, managePlayerControls);
prev_btn.addEventListener(MouseEvent.MOUSE_DOWN, managePlayerControls);

public function managePlayerControls (event:MouseEvent):void{
    switch(event.currentTarget){
        case stop_btn :
            // stop button code
            break;
        case play_btn :
            // play button code
            break;
        case pause_btn :
            // pause button code
            break;
        case next_btn :
            // next button code
            break;
        case prev_btn :
            // prev button code
            break;
    }
}

etc....</description>
		<content:encoded><![CDATA[<p>what a mess..Look at all those crazy functions. If you use this tutorial, replace all those crazy functions with this structure instead:</p>
<p>stop_btn.addEventListener(MouseEvent.MOUSE_DOWN, managePlayerControls);<br />
play_btn.addEventListener(MouseEvent.MOUSE_DOWN, managePlayerControls);<br />
pause_btn.addEventListener(MouseEvent.MOUSE_DOWN, managePlayerControls);<br />
next_btn.addEventListener(MouseEvent.MOUSE_DOWN, managePlayerControls);<br />
prev_btn.addEventListener(MouseEvent.MOUSE_DOWN, managePlayerControls);</p>
<p>public function managePlayerControls (event:MouseEvent):void{<br />
    switch(event.currentTarget){<br />
        case stop_btn :<br />
            // stop button code<br />
            break;<br />
        case play_btn :<br />
            // play button code<br />
            break;<br />
        case pause_btn :<br />
            // pause button code<br />
            break;<br />
        case next_btn :<br />
            // next button code<br />
            break;<br />
        case prev_btn :<br />
            // prev button code<br />
            break;<br />
    }<br />
}</p>
<p>etc&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.flashenabledblog.com/2008/05/28/tutorial-create-a-as3-flash-9-mp3-player-with-spectrum-display/comment-page-1/#comment-1132</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Mon, 13 Apr 2009 03:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/?p=1398#comment-1132</guid>
		<description>fraenk maybe upgrade to the latest version of flash for the browser you are using?</description>
		<content:encoded><![CDATA[<p>fraenk maybe upgrade to the latest version of flash for the browser you are using?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fraenk</title>
		<link>http://www.flashenabledblog.com/2008/05/28/tutorial-create-a-as3-flash-9-mp3-player-with-spectrum-display/comment-page-1/#comment-1131</link>
		<dc:creator>fraenk</dc:creator>
		<pubDate>Mon, 09 Feb 2009 21:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/?p=1398#comment-1131</guid>
		<description>neat tutorial!!

everything works fine until the player is displayed inside a browser? cant&#039;s think of any explanations but inside the browser the spectrum analyzis is not visible anymore. launching the swf directly inside the flashplayer works fine though?!?</description>
		<content:encoded><![CDATA[<p>neat tutorial!!</p>
<p>everything works fine until the player is displayed inside a browser? cant&#8217;s think of any explanations but inside the browser the spectrum analyzis is not visible anymore. launching the swf directly inside the flashplayer works fine though?!?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brittany</title>
		<link>http://www.flashenabledblog.com/2008/05/28/tutorial-create-a-as3-flash-9-mp3-player-with-spectrum-display/comment-page-1/#comment-1130</link>
		<dc:creator>brittany</dc:creator>
		<pubDate>Sat, 17 Jan 2009 19:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/?p=1398#comment-1130</guid>
		<description>what are you trying to say</description>
		<content:encoded><![CDATA[<p>what are you trying to say</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sanchaita</title>
		<link>http://www.flashenabledblog.com/2008/05/28/tutorial-create-a-as3-flash-9-mp3-player-with-spectrum-display/comment-page-1/#comment-1129</link>
		<dc:creator>sanchaita</dc:creator>
		<pubDate>Thu, 24 Jul 2008 05:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/?p=1398#comment-1129</guid>
		<description>it will be help full for creating a mp3 player but it should be include more option and it will be create if we connect it with database</description>
		<content:encoded><![CDATA[<p>it will be help full for creating a mp3 player but it should be include more option and it will be create if we connect it with database</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flash design brighton</title>
		<link>http://www.flashenabledblog.com/2008/05/28/tutorial-create-a-as3-flash-9-mp3-player-with-spectrum-display/comment-page-1/#comment-1128</link>
		<dc:creator>flash design brighton</dc:creator>
		<pubDate>Mon, 07 Jul 2008 14:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/?p=1398#comment-1128</guid>
		<description>awesome use of this new functionality, really useful example thanks very much!</description>
		<content:encoded><![CDATA[<p>awesome use of this new functionality, really useful example thanks very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cliff</title>
		<link>http://www.flashenabledblog.com/2008/05/28/tutorial-create-a-as3-flash-9-mp3-player-with-spectrum-display/comment-page-1/#comment-1127</link>
		<dc:creator>cliff</dc:creator>
		<pubDate>Thu, 26 Jun 2008 20:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/?p=1398#comment-1127</guid>
		<description>Correct me if i am wrong but there seems to be a fundamental error here regarding your spectrum, it seems  u have the right channel constantly in oposition with the left channel. In fact in ur code u make a cut at 256, but the byteArray different from a usual Array returns in each of your for loops the entire spectrum left + right. So i will point in the right direction, one way is to control directly the position in the bit array something like i*16, with i from 0 to 63 (for left)and then 64 to 128 (for right), so something like myBytes.position = i * 16; and then the usual myBytes.readFloat()  Hope this helps and please  let me know if i am not talking complete bullsh@&#039;&#039;&#039;t, lol.</description>
		<content:encoded><![CDATA[<p>Correct me if i am wrong but there seems to be a fundamental error here regarding your spectrum, it seems  u have the right channel constantly in oposition with the left channel. In fact in ur code u make a cut at 256, but the byteArray different from a usual Array returns in each of your for loops the entire spectrum left + right. So i will point in the right direction, one way is to control directly the position in the bit array something like i*16, with i from 0 to 63 (for left)and then 64 to 128 (for right), so something like myBytes.position = i * 16; and then the usual myBytes.readFloat()  Hope this helps and please  let me know if i am not talking complete bullsh@&#8221;&#8217;t, lol.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugh</title>
		<link>http://www.flashenabledblog.com/2008/05/28/tutorial-create-a-as3-flash-9-mp3-player-with-spectrum-display/comment-page-1/#comment-1126</link>
		<dc:creator>Hugh</dc:creator>
		<pubDate>Tue, 24 Jun 2008 09:00:41 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/?p=1398#comment-1126</guid>
		<description>Great tutorial !
  thx you so much for putting it there ,but i do have a question , hopefully u can able to solve my problem , anyway i want to repeat the music , is it anyway to do that ?</description>
		<content:encoded><![CDATA[<p>Great tutorial !<br />
  thx you so much for putting it there ,but i do have a question , hopefully u can able to solve my problem , anyway i want to repeat the music , is it anyway to do that ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

