<?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: How To Code A Full Functional MP3 Player Using ActionScript 3.0</title>
	<atom:link href="http://flashjourney.com/2009/08/30/how-to-code-a-full-functional-mp3-player-using-actionscript-3-0/feed/" rel="self" type="application/rss+xml" />
	<link>http://flashjourney.com/2009/08/30/how-to-code-a-full-functional-mp3-player-using-actionscript-3-0/</link>
	<description>A Journey Towards Learning Flash and Webdesign</description>
	<lastBuildDate>Fri, 13 Jan 2012 08:18:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: MAD</title>
		<link>http://flashjourney.com/2009/08/30/how-to-code-a-full-functional-mp3-player-using-actionscript-3-0/comment-page-3/#comment-3996</link>
		<dc:creator>MAD</dc:creator>
		<pubDate>Fri, 26 Aug 2011 13:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://flashjourney.com/?p=752#comment-3996</guid>
		<description>Knutars,
Currently the search rate is set as follows:
const SEARCH_RATE:int = 1500;

This will move the track by 1.5 seconds. To change it for 60 seconds or 20 second set it as follows:
const SEARCH_RATE:int = 60000;
or
const SEARCH_RATE:int = 20000;

To combine the two buttons, you can move the code in the pause function into the play function. You will need to hide/display the appropriate button for each action.</description>
		<content:encoded><![CDATA[<p>Knutars,<br />
Currently the search rate is set as follows:<br />
const SEARCH_RATE:int = 1500;</p>
<p>This will move the track by 1.5 seconds. To change it for 60 seconds or 20 second set it as follows:<br />
const SEARCH_RATE:int = 60000;<br />
or<br />
const SEARCH_RATE:int = 20000;</p>
<p>To combine the two buttons, you can move the code in the pause function into the play function. You will need to hide/display the appropriate button for each action.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MAD</title>
		<link>http://flashjourney.com/2009/08/30/how-to-code-a-full-functional-mp3-player-using-actionscript-3-0/comment-page-3/#comment-3995</link>
		<dc:creator>MAD</dc:creator>
		<pubDate>Fri, 26 Aug 2011 12:05:17 +0000</pubDate>
		<guid isPermaLink="false">http://flashjourney.com/?p=752#comment-3995</guid>
		<description>I had a problem with the spectrum too, when I recreated the player using FLash CS5. The spectrum shows on top left corner of the screen. So what you need to do is create a new layer under the actions layer. Call this layer spectrum. Then create within the first frame an empty movie clip. Call the movie clip &quot;spectrum&quot;. Then follow the last steps on this tutorial for adding the spectrum, you would have your spectrum displayed as intended.</description>
		<content:encoded><![CDATA[<p>I had a problem with the spectrum too, when I recreated the player using FLash CS5. The spectrum shows on top left corner of the screen. So what you need to do is create a new layer under the actions layer. Call this layer spectrum. Then create within the first frame an empty movie clip. Call the movie clip &#8220;spectrum&#8221;. Then follow the last steps on this tutorial for adding the spectrum, you would have your spectrum displayed as intended.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MAD</title>
		<link>http://flashjourney.com/2009/08/30/how-to-code-a-full-functional-mp3-player-using-actionscript-3-0/comment-page-3/#comment-3994</link>
		<dc:creator>MAD</dc:creator>
		<pubDate>Fri, 26 Aug 2011 12:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://flashjourney.com/?p=752#comment-3994</guid>
		<description>Hi Dave,
Originally the player did not play automatically. However some people requested for this to be automated. I am glad you found your own way to disable it :)</description>
		<content:encoded><![CDATA[<p>Hi Dave,<br />
Originally the player did not play automatically. However some people requested for this to be automated. I am glad you found your own way to disable it <img src='http://flashjourney.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MAD</title>
		<link>http://flashjourney.com/2009/08/30/how-to-code-a-full-functional-mp3-player-using-actionscript-3-0/comment-page-3/#comment-3993</link>
		<dc:creator>MAD</dc:creator>
		<pubDate>Fri, 26 Aug 2011 12:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://flashjourney.com/?p=752#comment-3993</guid>
		<description>I followed the tutorial again and recreated the player from code within the post. The only problems I found are: pause_mc instance was incorrectly spelled. In the Flash design it is called pasue_mc instead pause_mc. So changing the instance name would resolve this issue.
The other problem I found when using Flash CS5, is the spectrum is displayed on the top left corner instead on the intended position. This problem was not there when the player was created using Flash CS3. I will investigate and post a solution soon.</description>
		<content:encoded><![CDATA[<p>I followed the tutorial again and recreated the player from code within the post. The only problems I found are: pause_mc instance was incorrectly spelled. In the Flash design it is called pasue_mc instead pause_mc. So changing the instance name would resolve this issue.<br />
The other problem I found when using Flash CS5, is the spectrum is displayed on the top left corner instead on the intended position. This problem was not there when the player was created using Flash CS3. I will investigate and post a solution soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MAD</title>
		<link>http://flashjourney.com/2009/08/30/how-to-code-a-full-functional-mp3-player-using-actionscript-3-0/comment-page-3/#comment-3992</link>
		<dc:creator>MAD</dc:creator>
		<pubDate>Fri, 26 Aug 2011 10:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://flashjourney.com/?p=752#comment-3992</guid>
		<description>Did you check the previous post on &lt;a href=&quot;http://flashjourney.com/2009/08/22/how-to-create-an-mp3-player-from-design-to-finish/&quot; rel=&quot;nofollow&quot;&gt;how to design the Flash player interface&lt;/a&gt; before writing the code. It seems to me that the play_mc movie clip is missing. You need to follow the previous post to create al the assets that are needed in this tutorial. Let me know if this helps solving your issues!!</description>
		<content:encoded><![CDATA[<p>Did you check the previous post on <a href="http://flashjourney.com/2009/08/22/how-to-create-an-mp3-player-from-design-to-finish/" rel="nofollow">how to design the Flash player interface</a> before writing the code. It seems to me that the play_mc movie clip is missing. You need to follow the previous post to create al the assets that are needed in this tutorial. Let me know if this helps solving your issues!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Lawrence</title>
		<link>http://flashjourney.com/2009/08/30/how-to-code-a-full-functional-mp3-player-using-actionscript-3-0/comment-page-3/#comment-3978</link>
		<dc:creator>Dave Lawrence</dc:creator>
		<pubDate>Sat, 20 Aug 2011 02:40:20 +0000</pubDate>
		<guid isPermaLink="false">http://flashjourney.com/?p=752#comment-3978</guid>
		<description>In another matter, the spectrum player looks fine in Flash preview, but is invisible on the live page, as on here: http://ramsites.net/~dmlawrence/noise_signal.html

Any ideas what the problem is?  Other than the color scheme, the ActionScript code is identical to the tutorial.</description>
		<content:encoded><![CDATA[<p>In another matter, the spectrum player looks fine in Flash preview, but is invisible on the live page, as on here: <a href="http://ramsites.net/~dmlawrence/noise_signal.html" rel="nofollow">http://ramsites.net/~dmlawrence/noise_signal.html</a></p>
<p>Any ideas what the problem is?  Other than the color scheme, the ActionScript code is identical to the tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Lawrence</title>
		<link>http://flashjourney.com/2009/08/30/how-to-code-a-full-functional-mp3-player-using-actionscript-3-0/comment-page-3/#comment-3977</link>
		<dc:creator>Dave Lawrence</dc:creator>
		<pubDate>Sat, 20 Aug 2011 02:18:01 +0000</pubDate>
		<guid isPermaLink="false">http://flashjourney.com/?p=752#comment-3977</guid>
		<description>I have been trying to figure out how to disable the autoplay behavior when a page loads.  I tried modifying the onceLaoded function like this:

function onceLoaded(e:Event):void {
trackXML = new XML(e.target.data);
trackList = trackXML.track;
urlRequest = new URLRequest(trackList[index].path);
track.addEventListener(Event.COMPLETE, trackCompleteHandler);
track.addEventListener(ProgressEvent.PROGRESS, trackProgressHandler);
track.load(urlRequest, context);
// Comment out the next two lines of the original function
// chan = track.play(trackPos);
// chan.addEventListener(Event.SOUND_COMPLETE, playNext);
//
// New code added to disable auto play
//
chan.stop();
trackPos = 0;
trackOn = false;
play_mc.visible = true;
play_mc.addEventListener(MouseEvent.CLICK, playTrack);
//
// End new code
//
}

This successfully disables the autoplay behavior. Unfortunately, hitting the &quot;Play&quot; button does not activate the player. Hitting the &quot;Fast Forward,&quot; &quot;Play Next,&quot; or &quot;Play Previous&quot; buttons do activate the player and it plays normally afterward. Any ideas how to fix this to:

a) disable auto play;
b) begin play properly by hitting the &quot;Play&quot; button first.</description>
		<content:encoded><![CDATA[<p>I have been trying to figure out how to disable the autoplay behavior when a page loads.  I tried modifying the onceLaoded function like this:</p>
<p>function onceLoaded(e:Event):void {<br />
trackXML = new XML(e.target.data);<br />
trackList = trackXML.track;<br />
urlRequest = new URLRequest(trackList[index].path);<br />
track.addEventListener(Event.COMPLETE, trackCompleteHandler);<br />
track.addEventListener(ProgressEvent.PROGRESS, trackProgressHandler);<br />
track.load(urlRequest, context);<br />
// Comment out the next two lines of the original function<br />
// chan = track.play(trackPos);<br />
// chan.addEventListener(Event.SOUND_COMPLETE, playNext);<br />
//<br />
// New code added to disable auto play<br />
//<br />
chan.stop();<br />
trackPos = 0;<br />
trackOn = false;<br />
play_mc.visible = true;<br />
play_mc.addEventListener(MouseEvent.CLICK, playTrack);<br />
//<br />
// End new code<br />
//<br />
}</p>
<p>This successfully disables the autoplay behavior. Unfortunately, hitting the &#8220;Play&#8221; button does not activate the player. Hitting the &#8220;Fast Forward,&#8221; &#8220;Play Next,&#8221; or &#8220;Play Previous&#8221; buttons do activate the player and it plays normally afterward. Any ideas how to fix this to:</p>
<p>a) disable auto play;<br />
b) begin play properly by hitting the &#8220;Play&#8221; button first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Knutars</title>
		<link>http://flashjourney.com/2009/08/30/how-to-code-a-full-functional-mp3-player-using-actionscript-3-0/comment-page-3/#comment-3964</link>
		<dc:creator>Knutars</dc:creator>
		<pubDate>Tue, 16 Aug 2011 05:34:16 +0000</pubDate>
		<guid isPermaLink="false">http://flashjourney.com/?p=752#comment-3964</guid>
		<description>Thanks for the instructive tutorial. 

I have a request.

Would you be so kind and describe how to make the fast forward and rewind buttons simply jump a pre-specified length of time, for instance 60 and 20 seconds.

When I think of it, perhaps the play and pause buttons would be better off combined into one single dual action button?</description>
		<content:encoded><![CDATA[<p>Thanks for the instructive tutorial. </p>
<p>I have a request.</p>
<p>Would you be so kind and describe how to make the fast forward and rewind buttons simply jump a pre-specified length of time, for instance 60 and 20 seconds.</p>
<p>When I think of it, perhaps the play and pause buttons would be better off combined into one single dual action button?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khaler</title>
		<link>http://flashjourney.com/2009/08/30/how-to-code-a-full-functional-mp3-player-using-actionscript-3-0/comment-page-3/#comment-3940</link>
		<dc:creator>khaler</dc:creator>
		<pubDate>Sat, 06 Aug 2011 15:29:02 +0000</pubDate>
		<guid isPermaLink="false">http://flashjourney.com/?p=752#comment-3940</guid>
		<description>hey, awesome tutorial. really comprehensive and easy to understand, even for a flash/scripting novice like me.
i followed the instructions as closely as i could, but flash keeps reporting several (15) problems, all of them with the description: &quot;1120: Access of undefined property play_mc. etc.&quot;
i think if i was able to solve the problem of one, i could solve them all since all the errors seem to pertain to play_mc and all say &#039;1120.&#039;.
maybe i encoded that part wrongly, but flash does not report any errors with the script until after i&#039;ve pressed publish. i also redid the tutorial before because it had not been working.
apart from that, really good tutorial. i&#039;m pretty sure i&#039;m only one of a few who found problems trying to follow it.</description>
		<content:encoded><![CDATA[<p>hey, awesome tutorial. really comprehensive and easy to understand, even for a flash/scripting novice like me.<br />
i followed the instructions as closely as i could, but flash keeps reporting several (15) problems, all of them with the description: &#8220;1120: Access of undefined property play_mc. etc.&#8221;<br />
i think if i was able to solve the problem of one, i could solve them all since all the errors seem to pertain to play_mc and all say &#8217;1120.&#8217;.<br />
maybe i encoded that part wrongly, but flash does not report any errors with the script until after i&#8217;ve pressed publish. i also redid the tutorial before because it had not been working.<br />
apart from that, really good tutorial. i&#8217;m pretty sure i&#8217;m only one of a few who found problems trying to follow it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MAD</title>
		<link>http://flashjourney.com/2009/08/30/how-to-code-a-full-functional-mp3-player-using-actionscript-3-0/comment-page-3/#comment-3910</link>
		<dc:creator>MAD</dc:creator>
		<pubDate>Tue, 26 Jul 2011 18:22:51 +0000</pubDate>
		<guid isPermaLink="false">http://flashjourney.com/?p=752#comment-3910</guid>
		<description>JC I beleive you specify your files path as absolute or relative. Let me know if you still have issues.</description>
		<content:encoded><![CDATA[<p>JC I beleive you specify your files path as absolute or relative. Let me know if you still have issues.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

