<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Random Fractals&#187; Sound Visualizer</title>
	<atom:link href="http://randomfractals.com/blog/flex/sound-visualizer/feed/" rel="self" type="application/rss+xml" />
	<link>http://randomfractals.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 27 Mar 2010 13:57:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Spark Path Sound Visualizer</title>
		<link>http://randomfractals.com/blog/2010/03/26/spark-path-sound-visualizer/</link>
		<comments>http://randomfractals.com/blog/2010/03/26/spark-path-sound-visualizer/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 21:20:56 +0000</pubDate>
		<dc:creator>Taras</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[Sound Visualizer]]></category>
		<category><![CDATA[Spark Path]]></category>

		<guid isPermaLink="false">http://randomfractals.com/blog/?p=784</guid>
		<description><![CDATA[Flex 4 SDK final is out. It&#8217;s time to update and post some early Flex 4 prototypes I&#8217;ve built with Beta 1 and 2 last year.
Here is a simple Spark Path Sound Visualizer I put together to check out new Spark Path primitive:

spark.primitives.Path graphic element was introduced in Flex 4 as part of new FXG [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Flex 4 SDK Download" href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4" target="_blank">Flex 4 SDK</a> final is out. It&#8217;s time to update and post some early Flex 4 prototypes I&#8217;ve built with Beta 1 and 2 last year.</p>
<p>Here is a simple <a title="Spark Path Sound Visualizer" href="http://www.randomfractals.com/lab/media/SparkyPathSoundVisualizer/04/SparkPathSoundVisualizer.html" target="_blank">Spark Path Sound Visualizer</a> I put together to check out new Spark Path primitive:</p>
<p style="text-align: left;">
<div id="attachment_785" class="wp-caption aligncenter" style="width: 410px"><a title="View Spark Path Sound Visualizer Demo" href="http://www.randomfractals.com/lab/media/SparkyPathSoundVisualizer/04/SparkPathSoundVisualizer.html" target="_blank"><img class="size-medium wp-image-785  " title="View Spark Path Sound Visualizer Demo" src="http://randomfractals.com/blog/wp-content/uploads/2010/03/sparkPathSoundVisualizer-400x217.png" alt="" width="400" height="217" /></a><p class="wp-caption-text">Spark Path Sound Visualizer</p></div>
<p style="text-align: left;"><a title="spark.primitives.Path API docs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/primitives/Path.html" target="_blank">spark.primitives.Path</a> graphic element was introduced in Flex 4 as part of new <a title="FXG and MXML graphics" href="http://help.adobe.com/en_US/Flex/4.0/UsingSDK/WS145DAB0B-A958-423f-8A01-12B679BA0CC7.html" target="_blank">FXG  and MXML graphics</a> components for displaying vector-based graphics.</p>
<p style="text-align: left;">Spark Path is  a handy view primitive for drawing shapes, maps,  charts, or sound  visualizations as in this example. Although, I do wish it exposed its  PathSegmentsCollection and PathSegment types for manipulating path data  dynamically via ActionScript. More on this after the fold:</p>
<p style="text-align: left;"><span id="more-784"></span>The only workaround I found for updating Path segments without assigning data string property and string parsing on every frame was by updating mx_internal graphicsPath variable directly. GraphicsPath performs all the drawing operations for this new Spark Path component, and this approach seems to work, but I am not a big fan or supporter of the custom little known mx_internal namespace interface.</p>
<p style="text-align: left;">Besides, I am still scratching my head why the whole <a title="spark.primitives.pathSegments package source code" href="http://opensource.adobe.com/svn/opensource/flex/sdk/tags/4.0.0.7219_flex4_beta1/frameworks/projects/flex4/src/spark/primitives/pathSegments/" target="_blank">spark.primitives.pathSegments package</a> with all the path segment types was scraped after Flex SDK Beta 1 and folded into spark.primitives.Path component with private access to the segments collection and now inner PathSegment type classes. Since Flex SDK is open source, you can view current <a title="Spark Path source code" href="http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.as" target="_blank">spark.primitives.Path code here</a>.</p>
<p style="text-align: left;">I think it would be very useful to have direct access to the Path segments collection via ActionScript and be able to create Path segments on the fly for dynamic drawing applications. If you feel the same way, please vote for this feature in the next Flex 4 SDK patch/update release here:  <a href="http://bugs.adobe.com/jira/browse/SDK-25843" target="_blank">http://bugs.adobe.com/jira/browse/SDK-25843</a></p>
<p style="text-align: left;">You can view and download updated <a title="Spark Path Sound Visualizer" href="http://www.randomfractals.com/lab/media/SparkyPathSoundVisualizer/04/SparkPathSoundVisualizer.html" target="_blank">Spark Path Sound Visualizer</a> demo code with the mx_internal graphicsPath solution <a title="Spark Path Sound Visualizer code" href="http://www.randomfractals.com/lab/media/SparkyPathSoundVisualizer/04/srcview/index.html" target="_blank">here</a>.</p>
<p style="text-align: left;">The original version built with Flex 4 SDK Beta 1 can be found <a title="Sparky Path Music Viz code for Flex 4 SDK Beta 1" href="http://www.randomfractals.com/lab/media/SparkyPathSoundVisualizer/03/srcview/index.html" target="_blank">here</a>. It&#8217;s messy, but you should be able to grasp the difference.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://randomfractals.com/blog/2010/03/26/spark-path-sound-visualizer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

