<?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: Displaying a dynamically loaded MP3 file&#8217;s ID3 information in Flex using the SoundEffect class</title>
	<atom:link href="http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sat, 13 Mar 2010 20:59:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Linko</title>
		<link>http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/comment-page-1/#comment-2735</link>
		<dc:creator>Linko</dc:creator>
		<pubDate>Thu, 19 Mar 2009 01:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/#comment-2735</guid>
		<description>I used your code above, and when I trace the songName in &lt;code&gt;soundEffect_id3()&lt;/code&gt; it shows names of all mp3s.

However, since this is not my labelFunction I cannot return the name.
&lt;pre class=&quot;code&quot;&gt;
	private function trackLabel(item:Object, column:DataGridColumn):String {
                var url:String = pathString + item.@name;
		var sound:Sound;
                var soundLoaderContext:SoundLoaderContext;
                var urlRequest:URLRequest = new URLRequest(url);
                // Check policy file
                soundLoaderContext = new SoundLoaderContext(1000, true);
                sound = new Sound();
                sound.addEventListener(Event.ID3, sound_id3);
                sound.load(urlRequest, soundLoaderContext);
                return sLabel;
	}
        private function sound_id3(evt:Event):void {
                sLabel = Sound(evt.currentTarget).id3.songName;
                trace(sLabel);
        }
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I used your code above, and when I trace the songName in <code>soundEffect_id3()</code> it shows names of all mp3s.</p>
<p>However, since this is not my labelFunction I cannot return the name.</p>
<pre class="code">
	private function trackLabel(item:Object, column:DataGridColumn):String {
                var url:String = pathString + item.@name;
		var sound:Sound;
                var soundLoaderContext:SoundLoaderContext;
                var urlRequest:URLRequest = new URLRequest(url);
                // Check policy file
                soundLoaderContext = new SoundLoaderContext(1000, true);
                sound = new Sound();
                sound.addEventListener(Event.ID3, sound_id3);
                sound.load(urlRequest, soundLoaderContext);
                return sLabel;
	}
        private function sound_id3(evt:Event):void {
                sLabel = Sound(evt.currentTarget).id3.songName;
                trace(sLabel);
        }
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/comment-page-1/#comment-2736</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 19 Mar 2009 01:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/#comment-2736</guid>
		<description>Linko,

I believe the problem would be that (as far as I know) you need to _load_ the MP3 in order to access their ID3 metadata. So for your code to work you would need to have the label function try to load the MP3 and get the ID3 information. Or perhaps you could use a custom item renderer to do the same thing, but still, I don&#039;t know that I&#039;d try loading X number of MP3s simultaneously to get their ID3 information.

Peter</description>
		<content:encoded><![CDATA[<p>Linko,</p>
<p>I believe the problem would be that (as far as I know) you need to _load_ the MP3 in order to access their ID3 metadata. So for your code to work you would need to have the label function try to load the MP3 and get the ID3 information. Or perhaps you could use a custom item renderer to do the same thing, but still, I don&#8217;t know that I&#8217;d try loading X number of MP3s simultaneously to get their ID3 information.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linko</title>
		<link>http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/comment-page-1/#comment-2737</link>
		<dc:creator>Linko</dc:creator>
		<pubDate>Wed, 18 Mar 2009 00:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/#comment-2737</guid>
		<description>Hi Peter,

your blog is really one of the best on the web and I have been able to find the examples I need so far. But not this time.

I have mp3 urls in XML and I am using this XML as dataProvider of a DataGrid.
My problem is getting the labelFunction to display id3.songName instead of the url or filename.

Any ideas?

Best,
Linko</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>your blog is really one of the best on the web and I have been able to find the examples I need so far. But not this time.</p>
<p>I have mp3 urls in XML and I am using this XML as dataProvider of a DataGrid.<br />
My problem is getting the labelFunction to display id3.songName instead of the url or filename.</p>
<p>Any ideas?</p>
<p>Best,<br />
Linko</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Letamank</title>
		<link>http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/comment-page-1/#comment-2734</link>
		<dc:creator>Letamank</dc:creator>
		<pubDate>Fri, 30 Jan 2009 18:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/#comment-2734</guid>
		<description>its give an error , soundEffect.stop(); is not property(stop) of soundEffect me as well</description>
		<content:encoded><![CDATA[<p>its give an error , soundEffect.stop(); is not property(stop) of soundEffect me as well</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/comment-page-1/#comment-2733</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Wed, 19 Mar 2008 17:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/#comment-2733</guid>
		<description>abhishek,

Are you using Flex 2 or Flex 3? I probably only tested Flex 3.

Peter</description>
		<content:encoded><![CDATA[<p>abhishek,</p>
<p>Are you using Flex 2 or Flex 3? I probably only tested Flex 3.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhishek</title>
		<link>http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/comment-page-1/#comment-2732</link>
		<dc:creator>abhishek</dc:creator>
		<pubDate>Wed, 19 Mar 2008 09:42:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/05/displaying-a-dynamically-loaded-mp3-files-id3-information-in-flex-using-the-soundeffect-class/#comment-2732</guid>
		<description>its give an error , soundEffect.stop(); is not property(stop) of soundEffect</description>
		<content:encoded><![CDATA[<p>its give an error , soundEffect.stop(); is not property(stop) of soundEffect</p>
]]></content:encoded>
	</item>
</channel>
</rss>
