<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Flash Café</title>
	
	<link>http://flexgraphix.com/blog</link>
	<description />
	<lastBuildDate>Wed, 28 Jul 2010 21:35:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/FlashCafe" /><feedburner:info uri="flashcafe" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Flash Builder – Custom Event code hinting.</title>
		<link>http://feedproxy.google.com/~r/FlashCafe/~3/MMkUNmoBNl8/</link>
		<comments>http://flexgraphix.com/blog/?p=152#comments</comments>
		<pubDate>Wed, 28 Jul 2010 21:35:23 +0000</pubDate>
		<dc:creator>nebutch</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://flexgraphix.com/blog/?p=152</guid>
		<description><![CDATA[Here&#8217;s a little trick to bring up expected events in code hinting in the Flash/Flex Builder IDE: Let&#8217;s say you have a custom event: package com.application.view.events &#123; import flash.events.Event; &#160; public class CustomEvent extends Event &#123; public static const SOME_EVENT:String = &#34;someEvent&#34;; &#160; public function CustomEvent&#40;type:String, bubbles:Boolean=false, cancelable:Boolean=false&#41; &#123; super&#40;type, bubbles, cancelable&#41;; &#125; &#125; &#125; [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a little trick to bring up expected events in code hinting in the Flash/Flex Builder IDE:</p>
<p>Let&#8217;s say you have a custom event:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package com.<span style="color: #006600;">application</span>.<span style="color: #006600;">view</span>.<span style="color: #006600;">events</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> CustomEvent <span style="color: #0066CC;">extends</span> Event
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">public</span> <span style="color: #0066CC;">static</span> const SOME_EVENT:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;someEvent&quot;</span>;
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> CustomEvent<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">type</span>:<span style="color: #0066CC;">String</span>, bubbles:<span style="color: #0066CC;">Boolean</span>=<span style="color: #000000; font-weight: bold;">false</span>, cancelable:<span style="color: #0066CC;">Boolean</span>=<span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #0066CC;">super</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">type</span>, bubbles, cancelable<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>When you create a class that dispatches this event, add an Event metatag before the class definition. You also must have an ASDoc comment formatted correctly using <code>@eventType [fully qualified class path/name]</code></p>
<p>Example:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package com.<span style="color: #006600;">defjam</span>.<span style="color: #006600;">application</span>.<span style="color: #006600;">view</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">EventDispatcher</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">IEventDispatcher</span>;
&nbsp;
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> CustomClass <span style="color: #0066CC;">extends</span> EventDispatcher
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #808080; font-style: italic;">/**
		 * @eventType com.defjam.application.view.events.CustomDataGridEvent.ROW_SELECTED 
		 */</span>		
		<span style="color: #66cc66;">&#91;</span>Event<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;someEvent&quot;</span>, <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">&quot;com.application.view.events.CustomEvent&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> CustomClass<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">target</span>:IEventDispatcher=<span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #0066CC;">super</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">target</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Now, when you write an event listener for your class in the Flex Builder IDE, you&#8217;ll get autocomplete options that include your event/event types that your dispatcher class has defined.</p>
<p>-</p>
<img src="http://feeds.feedburner.com/~r/FlashCafe/~4/MMkUNmoBNl8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flexgraphix.com/blog/?feed=rss2&amp;p=152</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flexgraphix.com/blog/?p=152#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=flash-builder-custom-event-code-hinting</feedburner:origLink></item>
		<item>
		<title>Flash 10.1 Updates</title>
		<link>http://feedproxy.google.com/~r/FlashCafe/~3/LAZP8sUgVe4/</link>
		<comments>http://flexgraphix.com/blog/?p=135#comments</comments>
		<pubDate>Wed, 31 Mar 2010 18:44:13 +0000</pubDate>
		<dc:creator>nebutch</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flash 10.1]]></category>
		<category><![CDATA[Flash API]]></category>

		<guid isPermaLink="false">http://flexgraphix.com/blog/?p=135</guid>
		<description><![CDATA[I&#8217;ve compiled a list of all the new classes in the Flash 10.1 API. Some look to be very useful, while others seem to be internal classes that aren&#8217;t going to be any use for developers. &#8212; NEW CLASSES &#8212; AAAARecord Accelerometer AccelerometerEvent AnimatorFactoryUniversal AnimatorUniversal ApplyElementIDOperation ApplyElementStyleNameOperation ApplyElementUserStyleOperation ApplyFormatOperation ApplyFormatToElementOperation ApplyLinkOperation ApplyTCYOperation ARecord BackgroundColor BaselineOffset [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve compiled a list of all the new classes in the Flash 10.1 API. Some look to be very useful, while others seem to be internal classes that aren&#8217;t going to be any use for developers.</p>
<p><span id="more-135"></span></p>
<blockquote><p><strong>&#8212; NEW CLASSES &#8212;</strong></p>
<p>AAAARecord<br />
Accelerometer<br />
AccelerometerEvent<br />
AnimatorFactoryUniversal<br />
AnimatorUniversal<br />
ApplyElementIDOperation<br />
ApplyElementStyleNameOperation<br />
ApplyElementUserStyleOperation<br />
ApplyFormatOperation<br />
ApplyFormatToElementOperation<br />
ApplyLinkOperation<br />
ApplyTCYOperation<br />
ARecord<br />
BackgroundColor<br />
BaselineOffset<br />
BaselineShift<br />
BlockProgression<br />
BreakElement<br />
CameraRoll<br />
CertificateStatus<br />
CharacterUtil<br />
ClearFormatOnElementOperation<br />
ClearFormatOperation<br />
Collator<br />
CollatorMode<br />
ColumnState<br />
CompositeOperation<br />
CompositionAttributeRange<br />
CompositionCompleteEvent<br />
Configuration<br />
ContainerController<br />
ContainerFormattedElement<br />
ConversionType<br />
CopyOperation<br />
CurrencyFormatter<br />
CurrencyParseResult<br />
CutOperation<br />
DamageEvent<br />
DatagramSocket<br />
DatagramSocketDataEvent<br />
DateTimeFormatter<br />
DateTimeNameContext<br />
DateTimeNameStyle<br />
DateTimeStyle<br />
DeleteTextOperation<br />
Direction<br />
DivElement<br />
DNSResolver<br />
DNSResolverEvent<br />
EditingMode<br />
EditManager<br />
ElementRange<br />
FlowComposerBase<br />
FlowDamageType<br />
FlowElement<br />
FlowElementMouseEvent<br />
FlowElementOperation<br />
FlowGroupElement<br />
FlowLeafElement<br />
FlowOperation<br />
FlowOperationEvent<br />
FlowTextOperation<br />
FormatValue<br />
Geolocation<br />
GeolocationEvent<br />
GestureEvent<br />
GesturePhase<br />
GlobalSettings<br />
GroupSpecifier<br />
HTMLSWFCapability<br />
InlineGraphicElement<br />
InlineGraphicElementStatus<br />
InsertInlineGraphicOperation<br />
InsertTextOperation<br />
InterfaceAddress<br />
IPVersion<br />
JustificationRule<br />
KeyboardType<br />
LastOperationStatus<br />
LeadingModel<br />
LineBreak<br />
LinkElement<br />
LinkState<br />
LoadVoucherSetting<br />
LocaleID<br />
ModifyInlineGraphicOperation<br />
Multitouch<br />
MultitouchInputMode<br />
MXRecord<br />
NationalDigitsType<br />
NativeProcess<br />
NativeProcessExitEvent<br />
NativeProcessStartupInfo<br />
NavigationUtil<br />
NetGroup<br />
NetGroupInfo<br />
NetGroupReceiveMode<br />
NetGroupReplicationStrategy<br />
NetGroupSendMode<br />
NetGroupSendResult<br />
NetStreamAppendBytesAction<br />
NetStreamMulticastInfo<br />
NetworkInfo<br />
NetworkInterface<br />
NumberFormatter<br />
NumberParseResult<br />
OverflowPolicy<br />
PaperSize<br />
ParagraphElement<br />
ParagraphFormattedElement<br />
PasteOperation<br />
PlainTextExporter<br />
PressAndTapGestureEvent<br />
PrintMethod<br />
PrintUIOptions<br />
PTRRecord<br />
RedoOperation<br />
ResourceRecord<br />
RSLErrorEvent<br />
RSLEvent<br />
RSLInfo<br />
RSLPreloader<br />
SecureSocket<br />
SecureSocketMonitor<br />
SelectionEvent<br />
SelectionFormat<br />
SelectionManager<br />
SelectionState<br />
ServerSocket<br />
ServerSocketConnectEvent<br />
SpanElement<br />
SpecialCharacterElement<br />
SplitParagraphOperation<br />
SRVRecord<br />
StageAspectRatio<br />
StageOrientation<br />
StageOrientationEvent<br />
StandardFlowComposer<br />
StatusChangeEvent<br />
StorageVolume<br />
StorageVolumeChangeEvent<br />
StorageVolumeInfo<br />
StringTextLineFactory<br />
StringTools<br />
SubParagraphGroupElement<br />
SWZInfo<br />
SystemIdleMode<br />
SystemUpdater<br />
SystemUpdaterType<br />
TabElement<br />
TabStopFormat<br />
TCYElement<br />
TextAlign<br />
TextClipboard<br />
TextContainerManager<br />
TextConverter<br />
TextDecoration<br />
TextFlow<br />
TextFlowLine<br />
TextFlowLineLocation<br />
TextFlowTextLineFactory<br />
TextJustify<br />
TextLayoutEvent<br />
TextLayoutFormat<br />
TextLineFactoryBase<br />
TextLineRecycler<br />
TextRange<br />
TextScrap<br />
TLFTextField<br />
TLFTypographicCase<br />
TouchEvent<br />
TouchscreenType<br />
TransformGestureEvent<br />
TruncationOptions<br />
UncaughtErrorEvent<br />
UncaughtErrorEvents<br />
UndoManager<br />
UndoOperation<br />
UpdateCompleteEvent<br />
URLFilePromise<br />
VerticalAlign<br />
VoucherAccessInfo<br />
WhiteSpaceCollapse</p>
<p><strong>&#8212; NEW INTERFACES &#8212;</strong></p>
<p>IConfiguration<br />
IEditManager<br />
IFilePromise<br />
IFlowComposer<br />
IFormatResolver<br />
IIMEClient<br />
IInteractionEventHandler<br />
IOperation<br />
ISandboxSupport<br />
ISearchableText<br />
ISelectionManager<br />
ISimpleTextSelection<br />
ISWFContext<br />
ITabStopFormat<br />
ITextExporter<br />
ITextImporter<br />
ITextLayoutFormat<br />
ITextLineCreator<br />
IUndoManager<br />
IVerticalJustificationLine</p></blockquote>
<p>I&#8217;m planning on putting together some code examples over the next few weeks that cover some of the more interesting packages. Let me know if you have a request, and I&#8217;ll gladly make an effort to include them&#8230; <img src='http://flexgraphix.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/FlashCafe/~4/LAZP8sUgVe4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flexgraphix.com/blog/?feed=rss2&amp;p=135</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flexgraphix.com/blog/?p=135#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=flash-10-1-updates</feedburner:origLink></item>
		<item>
		<title>Pictures as Music</title>
		<link>http://feedproxy.google.com/~r/FlashCafe/~3/HUNlqOR-DQE/</link>
		<comments>http://flexgraphix.com/blog/?p=123#comments</comments>
		<pubDate>Mon, 22 Feb 2010 19:43:49 +0000</pubDate>
		<dc:creator>nebutch</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Media]]></category>

		<guid isPermaLink="false">http://flexgraphix.com/blog/?p=123</guid>
		<description><![CDATA[R Blank has just revealed Synthia, a real-time image to music creator created in Flash. You can upload an image, then listen to it! http://music.almerblank.com/]]></description>
			<content:encoded><![CDATA[<p><a href="http://music.almerblank.com"><img class=" alignnone" title="Synthia" src="http://www.flexgraphix.com/assets/screen-capture.jpg" alt="http://music.almerblank.com" width="500" height="335" /></a></p>
<p>R Blank has just revealed Synthia, a real-time image to music creator created in Flash. You can upload an image, then listen to it!</p>
<p><a title="Synthia" href="http://music.almerblank.com" target="_blank">http://music.almerblank.com/</a></p>
<img src="http://feeds.feedburner.com/~r/FlashCafe/~4/HUNlqOR-DQE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flexgraphix.com/blog/?feed=rss2&amp;p=123</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flexgraphix.com/blog/?p=123#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=pictures-as-music</feedburner:origLink></item>
		<item>
		<title>Hype/Papervision3D Demo</title>
		<link>http://feedproxy.google.com/~r/FlashCafe/~3/QXMqvcTXeQE/</link>
		<comments>http://flexgraphix.com/blog/?p=101#comments</comments>
		<pubDate>Thu, 05 Nov 2009 19:40:11 +0000</pubDate>
		<dc:creator>nebutch</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Hype]]></category>
		<category><![CDATA[Papervision]]></category>

		<guid isPermaLink="false">http://flexgraphix.com/blog/?p=101</guid>
		<description><![CDATA[This post features a quick demo of some of the SoundAnalyzer capabilities of the Hype framework, including some code samples. After working with Hype, I've found that while it's definitely not a catch-all framework, it does help cut down on common repetitive coding tasks.

UPDATE - I decided to give a tween engine one more shot, and was able to use TweenMax while keeping the framerate at an acceptable level.]]></description>
			<content:encoded><![CDATA[<p>So after getting my hands on the new <a href="http://hype.joshuadavis.com/">Hype</a> framework, I wanted to put together a simple demo together that utilizes a combination of the SoundAnalyzer class and some 3D eye candy (via Papervision3D).</p>
<p>First off, I can say that I really like being able to play around with the sound spectrum using only a couple lines of code. I also used the Rythm class to run an enter frame method, which is very convenient in that I didn&#8217;t need to manually set up an event and listener.</p>
<p>Lastly, I wanted to also utilize a tweening engine to smooth out the particle movement, but doing so cut the framerate by about 80% (a little better with TweenMax/TweenLite, but still not good enough). I also briefly played around with the <a href="http://flintparticles.org/">Flint particle emitter</a>, but I&#8217;m not familiar enough with Papervision/Flint to get it working how I wanted.</p>
<p><strong>UPDATE &#8211; I decided to give a tween engine one more shot, and was able to use TweenMax while keeping the framerate at an acceptable level.</strong></p>
<p><strong>UPDATE 11/06/2009 &#8211; Updated code sample to reflect demo swf.</strong></p>
<p><strong>UPDATE 3/29/2010 &#8211; It&#8217;s come to my attention that WordPress tends to be a bit moody when it comes to code formatting in posts, especially in the case of vectors (which use the greater than/less than characters). That said, I&#8217;ve posted a couple pastebin examples:</p>
<p><a href="http://pastebin.com/LbBzZdjJ">Document class</a><br />
<a href="http://pastebin.com/uyk8gfnh">ApplicationView class</a><br />
</strong></p>
<p><span id="more-101"></span><br />
Here&#8217;s the demo in action-<br />
<object width="580" height="580"><param name="movie" value="http://flexgraphix.com/blog/wp-content/uploads/2009/11/Paper_Hype_Lab3.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://flexgraphix.com/blog/wp-content/uploads/2009/11/Paper_Hype_Lab3.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="580" height="580"></embed></object> </p>
<p>..and here&#8217;s the code-</p>
<p>Paper_Hype_Lab.as (this would be the document class in Flash):</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> __AS3__.<span style="color: #006600;">vec</span>.<span style="color: #006600;">Vector</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">almerblanklabs</span>.<span style="color: #006600;">view</span>.<span style="color: #006600;">ApplicationView</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">lifeztream</span>.<span style="color: #006600;">debug</span>.<span style="color: #0066CC;">FPS</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">SimpleButton</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">IOErrorEvent</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">MouseEvent</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">ProgressEvent</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">external</span>.<span style="color: #006600;">ExternalInterface</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">media</span>.<span style="color: #0066CC;">Sound</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">media</span>.<span style="color: #006600;">SoundChannel</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">media</span>.<span style="color: #006600;">SoundLoaderContext</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">media</span>.<span style="color: #006600;">SoundTransform</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">URLRequest</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">system</span>.<span style="color: #006600;">LoaderContext</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">system</span>.<span style="color: #006600;">Security</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextField</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #006600;">TextFieldAutoSize</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextFormat</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #006600;">TextFormatAlign</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">utils</span>.<span style="color: #006600;">setTimeout</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> hype.<span style="color: #006600;">framework</span>.<span style="color: #006600;">behavior</span>.<span style="color: #006600;">SimpleBehavior</span>;
	<span style="color: #0066CC;">import</span> hype.<span style="color: #006600;">framework</span>.<span style="color: #006600;">core</span>.<span style="color: #006600;">TimeType</span>;
	<span style="color: #0066CC;">import</span> hype.<span style="color: #006600;">framework</span>.<span style="color: #006600;">rhythm</span>.<span style="color: #006600;">SimpleRhythm</span>;
	<span style="color: #0066CC;">import</span> hype.<span style="color: #006600;">framework</span>.<span style="color: #0066CC;">sound</span>.<span style="color: #006600;">SoundAnalyzer</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">objects</span>.<span style="color: #006600;">primitives</span>.<span style="color: #006600;">Sphere</span>;
&nbsp;
	<span style="color: #66cc66;">&#91;</span>SWF<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">'580'</span>, <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">'580'</span>, <span style="color: #0066CC;">backgroundColor</span>=<span style="color: #ff0000;">'#000000'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
&nbsp;
	<span style="color: #808080; font-style: italic;">/**
	 *
	 * @author Nolan Butcher
	 *
	 * DISCLAIMER : This code sample is by no means an optimized example. It is a PROTOTYPE.
	 * 				Please keep this in mind when looking through this code.
	 *
	 */</span>	
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Paper_Hype_Lab <span style="color: #0066CC;">extends</span> Sprite
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">private</span> <span style="color: #0066CC;">static</span> const ARTIST : <span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;Trioptic of the Sound Scientists&quot;</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #0066CC;">static</span> const AUDIO_PATH : <span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">'http://flexgraphix.com/blog/wp-content/uploads/2009/11/'</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #0066CC;">static</span> const AUDIO_FILES : <span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span>
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'evil_violin.mp3'</span>, title:<span style="color: #ff0000;">'Evil Violin(Rich <span style="color: #000099; font-weight: bold;">\'</span>n Stingy)'</span><span style="color: #66cc66;">&#125;</span>,
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'am_i_going_to_die.mp3'</span>, title:<span style="color: #ff0000;">'Am I Going to Die'</span><span style="color: #66cc66;">&#125;</span>,
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'going_pro.mp3'</span>, title:<span style="color: #ff0000;">'Going Pro'</span><span style="color: #66cc66;">&#125;</span>,
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'life_is_easily_taken.mp3'</span>, title:<span style="color: #ff0000;">'Life is Easily Taken'</span><span style="color: #66cc66;">&#125;</span>,
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'bubachu.mp3'</span>, title:<span style="color: #ff0000;">'Bubachu'</span><span style="color: #66cc66;">&#125;</span>,
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'midi_in-out.mp3'</span>, title:<span style="color: #ff0000;">'Midi In/Out'</span><span style="color: #66cc66;">&#125;</span>,
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'may_6.mp3'</span>, title:<span style="color: #ff0000;">'May 6'</span><span style="color: #66cc66;">&#125;</span>,
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'slow_descent.mp3'</span>, title:<span style="color: #ff0000;">'Slow Descent'</span><span style="color: #66cc66;">&#125;</span>,
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'nocens_sonitus.mp3'</span>, title:<span style="color: #ff0000;">'Nocens Sonitus'</span><span style="color: #66cc66;">&#125;</span>,
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'remember.mp3'</span>, title:<span style="color: #ff0000;">'Remember'</span><span style="color: #66cc66;">&#125;</span>,
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'soulful_east_coast.mp3'</span>, title:<span style="color: #ff0000;">'Soulful East Coast'</span><span style="color: #66cc66;">&#125;</span>,
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'sunrise_on_the_highway.mp3'</span>, title:<span style="color: #ff0000;">'Sunrise on the Highway'</span><span style="color: #66cc66;">&#125;</span>,
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'the_sad_truth_of_it_all.mp3'</span>, title:<span style="color: #ff0000;">'The Sad Truth of it All'</span><span style="color: #66cc66;">&#125;</span>,
														<span style="color: #66cc66;">&#123;</span>file:<span style="color: #ff0000;">'blueberry_haze.mp3'</span>, title:<span style="color: #ff0000;">'Blueberry Haze'</span><span style="color: #66cc66;">&#125;</span>
													<span style="color: #66cc66;">&#93;</span>;
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #0066CC;">static</span> const VOLUME : <span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">1</span>;
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _view : ApplicationView;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _sphere : Sphere;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _music : <span style="color: #0066CC;">Sound</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _sndChannel : SoundChannel;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _soundAnalyzer : SoundAnalyzer;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _freq : Vector. = <span style="color: #000000; font-weight: bold;">new</span> Vector.;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _rythm : SimpleRhythm;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _fps : <span style="color: #0066CC;">FPS</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _audioIndex : <span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">1</span>;
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _button : Sprite;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _hitArea : Sprite;
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _textField : <span style="color: #0066CC;">TextField</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _songText : <span style="color: #0066CC;">TextField</span>;
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _rotationX : <span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">0.3</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _rotationY : <span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">0.3</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _cameraPitch : <span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">90</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _cameraYaw : <span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">270</span>;
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _xDist : <span style="color: #0066CC;">Number</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _yDist : <span style="color: #0066CC;">Number</span>;
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _mouseDown : <span style="color: #0066CC;">Boolean</span> = <span style="color: #000000; font-weight: bold;">false</span>;
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Paper_Hype_Lab<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			Security.<span style="color: #0066CC;">allowDomain</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'*'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #0066CC;">stage</span>.<span style="color: #006600;">frameRate</span> = <span style="color: #cc66cc;">60</span>;
&nbsp;
			_sphere = <span style="color: #000000; font-weight: bold;">new</span> Sphere<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #cc66cc;">300</span>, <span style="color: #cc66cc;">24</span>, <span style="color: #cc66cc;">14</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			_view = <span style="color: #000000; font-weight: bold;">new</span> ApplicationView<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			_view.<span style="color: #006600;">object3D</span> = _sphere;
			_view.<span style="color: #006600;">startRendering</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			addChild<span style="color: #66cc66;">&#40;</span>_view<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			_initRythm<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			_initTextField<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			_loadSound<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			_initUI<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">// Get the FPS widget @ www.lifeztream.com</span>
			_fps = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">FPS</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			addChild<span style="color: #66cc66;">&#40;</span>_fps<span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _handleMouseEvents<span style="color: #66cc66;">&#40;</span>evt:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #b1b100;">switch</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span>evt.<span style="color: #0066CC;">type</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #b1b100;">case</span> MouseEvent.<span style="color: #006600;">MOUSE_DOWN</span>:
					_mouseDown = <span style="color: #000000; font-weight: bold;">true</span>;
				<span style="color: #b1b100;">break</span>;
				<span style="color: #b1b100;">case</span> MouseEvent.<span style="color: #006600;">MOUSE_UP</span>:
					_mouseDown = <span style="color: #000000; font-weight: bold;">false</span>;
				<span style="color: #b1b100;">break</span>;
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _loadSound<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">var</span> context : SoundLoaderContext = <span style="color: #000000; font-weight: bold;">new</span> SoundLoaderContext<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1000</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #000000; font-weight: bold;">var</span> req : URLRequest = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
				req.<span style="color: #0066CC;">url</span> = AUDIO_PATH + AUDIO_FILES<span style="color: #66cc66;">&#91;</span>_audioIndex<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">file</span>;
&nbsp;
			<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>_rythm <span style="color: #66cc66;">&amp;</span>amp;<span style="color: #66cc66;">&amp;</span>amp; _rythm.<span style="color: #006600;">isRunning</span><span style="color: #66cc66;">&#41;</span> _pauseRythm<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>_sndChannel<span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				_sndChannel.<span style="color: #0066CC;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
				<span style="color: #0066CC;">try</span> <span style="color: #66cc66;">&#123;</span>
					_music.<span style="color: #0066CC;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
				<span style="color: #66cc66;">&#125;</span> <span style="color: #0066CC;">catch</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:<span style="color: #0066CC;">Error</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
					<span style="color: #0066CC;">trace</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'cannot close sound stream'</span><span style="color: #66cc66;">&#41;</span>;
				<span style="color: #66cc66;">&#125;</span>
			<span style="color: #66cc66;">&#125;</span>
			_music = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Sound</span><span style="color: #66cc66;">&#40;</span>req, context<span style="color: #66cc66;">&#41;</span>;
			_music.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>IOErrorEvent.<span style="color: #006600;">IO_ERROR</span>, _handleIOErrorEvents, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			_sndChannel = _music.<span style="color: #0066CC;">play</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">1</span>, <span style="color: #000000; font-weight: bold;">new</span> SoundTransform<span style="color: #66cc66;">&#40;</span>VOLUME<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
			_sndChannel.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">SOUND_COMPLETE</span>, _onSoundDone, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			_soundAnalyzer = <span style="color: #000000; font-weight: bold;">new</span> SoundAnalyzer<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			_soundAnalyzer.<span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			_updateSongText<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>_rythm<span style="color: #66cc66;">&#41;</span> _initRythm<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _onSoundDone<span style="color: #66cc66;">&#40;</span>evt:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			_button.<span style="color: #006600;">mouseEnabled</span> = <span style="color: #000000; font-weight: bold;">false</span>;
			setTimeout<span style="color: #66cc66;">&#40;</span>_nextSong, <span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _nextSong<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			_button.<span style="color: #006600;">mouseEnabled</span> = <span style="color: #000000; font-weight: bold;">true</span>;
			_button.<span style="color: #006600;">dispatchEvent</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> MouseEvent<span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _handleIOErrorEvents<span style="color: #66cc66;">&#40;</span>evt:IOErrorEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>ExternalInterface.<span style="color: #006600;">available</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				ExternalInterface.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;window.alert('&quot;</span> + AUDIO_FILES<span style="color: #66cc66;">&#91;</span>_audioIndex<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">file</span> + <span style="color: #ff0000;">&quot; cannot be loaded')&quot;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _initUI<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			_hitArea = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			_hitArea.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0x000,<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;
			_hitArea.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">drawRect</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">580</span>,<span style="color: #cc66cc;">580</span><span style="color: #66cc66;">&#41;</span>;
			_hitArea.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">endFill</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			_hitArea.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_DOWN</span>, _handleMouseEvents, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
			_hitArea.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_UP</span>, _handleMouseEvents, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
			addChild<span style="color: #66cc66;">&#40;</span>_hitArea<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			_button = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			_button.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0x666666<span style="color: #66cc66;">&#41;</span>;
			_button.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">drawRect</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">100</span>,<span style="color: #cc66cc;">30</span><span style="color: #66cc66;">&#41;</span>;
			_button.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">endFill</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			_button.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">476</span>;
			_button.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">4</span>;
			_button.<span style="color: #006600;">buttonMode</span> = <span style="color: #000000; font-weight: bold;">true</span>;
			_button.<span style="color: #006600;">mouseChildren</span> = <span style="color: #000000; font-weight: bold;">false</span>;
			_button.<span style="color: #0066CC;">useHandCursor</span> = <span style="color: #000000; font-weight: bold;">true</span>;
			_button.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, _handleButtonEvents, <span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #000000; font-weight: bold;">var</span> buttonFormat : <span style="color: #0066CC;">TextFormat</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextFormat</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #cc66cc;">14</span>, 0xFFFFFF, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #000000; font-weight: bold;">var</span> buttonText : <span style="color: #0066CC;">TextField</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
				buttonText.<span style="color: #006600;">defaultTextFormat</span> = buttonFormat;
				buttonText.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;NEXT RIFF&quot;</span>;
				buttonText.<span style="color: #0066CC;">height</span> = <span style="color: #cc66cc;">18</span>;
				buttonText.<span style="color: #006600;">y</span> = <span style="color: #66cc66;">&#40;</span>_button.<span style="color: #0066CC;">height</span> - buttonText.<span style="color: #0066CC;">textHeight</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> .5;
				buttonText.<span style="color: #006600;">x</span> = <span style="color: #66cc66;">&#40;</span>_button.<span style="color: #0066CC;">width</span> - buttonText.<span style="color: #0066CC;">textWidth</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> .5;
&nbsp;
			addChild<span style="color: #66cc66;">&#40;</span>_button<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			_button.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>buttonText<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _pauseRythm<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			_rythm.<span style="color: #0066CC;">stop</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _resumeRythm<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			_rythm.<span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _initRythm<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			_rythm = <span style="color: #000000; font-weight: bold;">new</span> SimpleRhythm<span style="color: #66cc66;">&#40;</span>_trackRythm<span style="color: #66cc66;">&#41;</span>;
			_rythm.<span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span>TimeType.<span style="color: #006600;">ENTER_FRAME</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _initTextField<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">textFormat</span> : <span style="color: #0066CC;">TextFormat</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextFormat</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
				<span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">color</span> = 0x666666;
				<span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">align</span> = TextFormatAlign.<span style="color: #006600;">CENTER</span>;
				<span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">size</span> = <span style="color: #cc66cc;">14</span>;
&nbsp;
			_songText = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			_songText.<span style="color: #006600;">defaultTextFormat</span> = <span style="color: #0066CC;">textFormat</span>;
			_songText.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">1</span>;
			_songText.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;-- :: --&quot;</span>;
			_songText.<span style="color: #0066CC;">autoSize</span> = TextFieldAutoSize.<span style="color: #006600;">CENTER</span>;
			_songText.<span style="color: #006600;">y</span> = <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageHeight</span> - _songText.<span style="color: #0066CC;">textHeight</span><span style="color: #66cc66;">&#41;</span> - <span style="color: #cc66cc;">4</span>;
			_songText.<span style="color: #006600;">x</span> = <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageWidth</span> - _songText.<span style="color: #0066CC;">width</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #cc66cc;">0.5</span>;
			addChild<span style="color: #66cc66;">&#40;</span>_songText<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #000000; font-weight: bold;">var</span> artistText : <span style="color: #0066CC;">TextField</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
				artistText.<span style="color: #006600;">defaultTextFormat</span> = <span style="color: #0066CC;">textFormat</span>;
				artistText.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">1</span>;
				artistText.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;-- Artist :: &quot;</span> + ARTIST + <span style="color: #ff0000;">&quot; --&quot;</span>;
				artistText.<span style="color: #006600;">x</span> = <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageWidth</span> - artistText.<span style="color: #0066CC;">width</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #cc66cc;">0.5</span>;
				artistText.<span style="color: #006600;">y</span> = <span style="color: #66cc66;">&#40;</span>_songText.<span style="color: #006600;">y</span> - artistText.<span style="color: #0066CC;">textHeight</span><span style="color: #66cc66;">&#41;</span> - <span style="color: #cc66cc;">4</span>;
				artistText.<span style="color: #0066CC;">autoSize</span> = TextFieldAutoSize.<span style="color: #006600;">CENTER</span>;
&nbsp;
			addChild<span style="color: #66cc66;">&#40;</span>artistText<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			_textField = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			_textField.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">1</span>;
			_textField.<span style="color: #006600;">defaultTextFormat</span> = <span style="color: #0066CC;">textFormat</span>;
			_textField.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;-- Click and drag to rotate sphere --&quot;</span>;
			_textField.<span style="color: #006600;">x</span> = <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageWidth</span> - _textField.<span style="color: #0066CC;">width</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #cc66cc;">0.5</span>;
			_textField.<span style="color: #006600;">y</span> = artistText.<span style="color: #006600;">y</span> - _textField.<span style="color: #0066CC;">textHeight</span> - <span style="color: #cc66cc;">5</span>;
			_textField.<span style="color: #0066CC;">autoSize</span> = TextFieldAutoSize.<span style="color: #006600;">CENTER</span>;
&nbsp;
			addChild<span style="color: #66cc66;">&#40;</span>_textField<span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _updateSongText<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			_songText.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;-- Song :: &quot;</span> + AUDIO_FILES<span style="color: #66cc66;">&#91;</span>_audioIndex<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">title</span> + <span style="color: #ff0000;">&quot; --&quot;</span>;
			_songText.<span style="color: #006600;">x</span> = <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageWidth</span> - _songText.<span style="color: #0066CC;">width</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #cc66cc;">0.5</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _handleButtonEvents<span style="color: #66cc66;">&#40;</span>evt:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			_sndChannel.<span style="color: #006600;">removeEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">SOUND_COMPLETE</span>, _onSoundDone<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>_audioIndex <span style="color: #66cc66;">&amp;</span>lt; AUDIO_FILES.<span style="color: #006600;">length</span>-<span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				_audioIndex++;
			<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span>
				_audioIndex = <span style="color: #cc66cc;">0</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			_loadSound<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _trackRythm<span style="color: #66cc66;">&#40;</span>rythm : SimpleRhythm<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">1</span>;i <span style="color: #66cc66;">&amp;</span>lt; _sphere.<span style="color: #006600;">geometry</span>.<span style="color: #006600;">vertices</span>.<span style="color: #0066CC;">length</span> + <span style="color: #cc66cc;">1</span>;++i<span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				_freq<span style="color: #66cc66;">&#91;</span>i-<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span> = _soundAnalyzer.<span style="color: #006600;">getFrequencyIndex</span><span style="color: #66cc66;">&#40;</span>i, <span style="color: #cc66cc;">400</span>, <span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			_view.<span style="color: #006600;">moveParticles</span><span style="color: #66cc66;">&#40;</span>_freq<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">// Rotates camera around sphere depending on mouse position</span>
			<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>_mouseDown<span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				_xDist = mouseX - <span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageWidth</span> <span style="color: #66cc66;">*</span> <span style="color: #cc66cc;">0.5</span>;
				_yDist = mouseY - <span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageHeight</span> <span style="color: #66cc66;">*</span> <span style="color: #cc66cc;">0.5</span>;
&nbsp;
				_cameraPitch = _yDist <span style="color: #66cc66;">*</span> _rotationX + <span style="color: #cc66cc;">90</span>;
				_cameraYaw = _xDist <span style="color: #66cc66;">*</span> _rotationY + <span style="color: #cc66cc;">270</span>;
&nbsp;
				_view.<span style="color: #0066CC;">camera</span>.<span style="color: #006600;">orbit</span><span style="color: #66cc66;">&#40;</span>_cameraPitch, _cameraYaw<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>ApplicationView.as (extends PV3D&#8217;s BasicView class):</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package com.<span style="color: #006600;">almerblanklabs</span>.<span style="color: #006600;">view</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> __AS3__.<span style="color: #006600;">vec</span>.<span style="color: #006600;">Vector</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">greensock</span>.<span style="color: #006600;">OverwriteManager</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">greensock</span>.<span style="color: #006600;">TweenMax</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">greensock</span>.<span style="color: #006600;">easing</span>.<span style="color: #006600;">Elastic</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">greensock</span>.<span style="color: #006600;">plugins</span>.<span style="color: #006600;">MotionBlurPlugin</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">greensock</span>.<span style="color: #006600;">plugins</span>.<span style="color: #006600;">TweenPlugin</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">core</span>.<span style="color: #006600;">geom</span>.<span style="color: #006600;">Particles</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">core</span>.<span style="color: #006600;">geom</span>.<span style="color: #006600;">renderables</span>.<span style="color: #006600;">Particle</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">core</span>.<span style="color: #006600;">geom</span>.<span style="color: #006600;">renderables</span>.<span style="color: #006600;">Vertex3D</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">materials</span>.<span style="color: #006600;">special</span>.<span style="color: #006600;">ParticleMaterial</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">objects</span>.<span style="color: #006600;">DisplayObject3D</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">objects</span>.<span style="color: #006600;">primitives</span>.<span style="color: #006600;">Sphere</span>;
	<span style="color: #0066CC;">import</span> org.<span style="color: #006600;">papervision3d</span>.<span style="color: #006600;">view</span>.<span style="color: #006600;">BasicView</span>;
&nbsp;
	<span style="color: #808080; font-style: italic;">//import com.greensock.plugins.</span>
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> ApplicationView <span style="color: #0066CC;">extends</span> BasicView
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _object3D : DisplayObject3D;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _origVertices : Vector.<span style="color: #66cc66;">&lt;</span>Object<span style="color: #66cc66;">&gt;</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _displayObj : DisplayObject3D;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _satellites : Vector.<span style="color: #66cc66;">&lt;</span>Particle<span style="color: #66cc66;">&gt;</span>;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _particles : Particles;
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> ApplicationView<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #0066CC;">super</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">580</span>, <span style="color: #cc66cc;">580</span><span style="color: #66cc66;">&#41;</span>;	
			<span style="color: #808080; font-style: italic;">//TweenPlugin.activate([MotionBlurPlugin]);		</span>
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		override protected <span style="color: #000000; font-weight: bold;">function</span> onRenderTick<span style="color: #66cc66;">&#40;</span>event:Event=<span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #0066CC;">super</span>.<span style="color: #006600;">onRenderTick</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">set</span> object3D<span style="color: #66cc66;">&#40;</span>aValue : DisplayObject3D<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			_object3D = aValue;
			_setObjectVertices<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _setObjectVertices<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			_origVertices = <span style="color: #000000; font-weight: bold;">new</span> Vector.<span style="color: #66cc66;">&lt;</span>Object<span style="color: #66cc66;">&gt;</span>;
			<span style="color: #b1b100;">for</span> each<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> vert : Vertex3D <span style="color: #b1b100;">in</span> _object3D.<span style="color: #006600;">geometry</span>.<span style="color: #006600;">vertices</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">var</span> vertObj : <span style="color: #0066CC;">Object</span> = <span style="color: #66cc66;">&#123;</span>x:vert.<span style="color: #006600;">x</span>, y:vert.<span style="color: #006600;">y</span>, z:vert.<span style="color: #006600;">z</span><span style="color: #66cc66;">&#125;</span>;
				_origVertices.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>vertObj<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			_initParticles<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _initParticles<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>			
			<span style="color: #000000; font-weight: bold;">var</span> material : ParticleMaterial = <span style="color: #000000; font-weight: bold;">new</span> ParticleMaterial<span style="color: #66cc66;">&#40;</span>0xff0000, <span style="color: #cc66cc;">1</span>, ParticleMaterial.<span style="color: #006600;">SHAPE_CIRCLE</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			_satellites = <span style="color: #000000; font-weight: bold;">new</span> Vector.<span style="color: #66cc66;">&lt;</span>Particle<span style="color: #66cc66;">&gt;</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;			
			_particles = <span style="color: #000000; font-weight: bold;">new</span> Particles<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;			
			_displayObj = <span style="color: #000000; font-weight: bold;">new</span> DisplayObject3D<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			scene.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>_particles<span style="color: #66cc66;">&#41;</span>;
			scene.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>_displayObj<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			_displayObj.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>_particles<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #b1b100;">for</span> each<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> vert : Vertex3D <span style="color: #b1b100;">in</span> _object3D.<span style="color: #006600;">geometry</span>.<span style="color: #006600;">vertices</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>					
				<span style="color: #000000; font-weight: bold;">var</span> particle : Particle = <span style="color: #000000; font-weight: bold;">new</span> Particle<span style="color: #66cc66;">&#40;</span>material<span style="color: #66cc66;">&#41;</span>;
					particle.<span style="color: #006600;">x</span> = vert.<span style="color: #006600;">x</span>;
					particle.<span style="color: #006600;">y</span> = vert.<span style="color: #006600;">y</span>;
					particle.<span style="color: #006600;">z</span> = vert.<span style="color: #006600;">z</span>;
&nbsp;
				_particles.<span style="color: #006600;">addParticle</span><span style="color: #66cc66;">&#40;</span>particle<span style="color: #66cc66;">&#41;</span>;
&nbsp;
				_satellites.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>particle<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> moveParticles<span style="color: #66cc66;">&#40;</span>aValue:Vector.<span style="color: #66cc66;">&lt;</span>Number<span style="color: #66cc66;">&gt;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
				<span style="color: #000000; font-weight: bold;">var</span> i : <span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>;
				<span style="color: #000000; font-weight: bold;">var</span> j : <span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>;
				<span style="color: #000000; font-weight: bold;">var</span> t : <span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>;
&nbsp;
				<span style="color: #808080; font-style: italic;">// This ensures even distribution among all vertices.</span>
				<span style="color: #000000; font-weight: bold;">var</span> divisor : <span style="color: #0066CC;">Number</span> = <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">floor</span><span style="color: #66cc66;">&#40;</span>_satellites.<span style="color: #0066CC;">length</span> <span style="color: #66cc66;">/</span> <span style="color: #cc66cc;">256</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
				<span style="color: #b1b100;">for</span> each <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> sat : Particle <span style="color: #b1b100;">in</span> _satellites<span style="color: #66cc66;">&#41;</span>
				<span style="color: #66cc66;">&#123;</span>
					<span style="color: #808080; font-style: italic;">// The values used in the x,y,z calculations were achieved through trial and error...</span>
					TweenMax.<span style="color: #006600;">to</span><span style="color: #66cc66;">&#40;</span>_satellites<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>, .2, <span style="color: #66cc66;">&#123;</span>
														x: _origVertices<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">x</span> <span style="color: #66cc66;">*</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">400</span> <span style="color: #66cc66;">/</span> aValue<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #cc66cc;">1.2</span><span style="color: #66cc66;">&#41;</span>,
														y: _origVertices<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">y</span> <span style="color: #66cc66;">*</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">400</span> <span style="color: #66cc66;">/</span> aValue<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #cc66cc;">1.2</span><span style="color: #66cc66;">&#41;</span>,
														z: _origVertices<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">z</span> <span style="color: #66cc66;">*</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">400</span> <span style="color: #66cc66;">/</span> aValue<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #cc66cc;">1.2</span><span style="color: #66cc66;">&#41;</span>,
														overwrite: OverwriteManager.<span style="color: #006600;">PREEXISTING</span>
													<span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
&nbsp;
					<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>i <span style="color: #66cc66;">&lt;</span> <span style="color: #66cc66;">&#40;</span>_satellites.<span style="color: #0066CC;">length</span> - <span style="color: #66cc66;">&#40;</span>divisor - <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
						i += divisor;
					<span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
				<span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
			_displayObj.<span style="color: #006600;">localRotationZ</span> += .3;
			_displayObj.<span style="color: #006600;">localRotationY</span> += .1;			
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> _renderScene<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			renderer.<span style="color: #006600;">renderScene</span><span style="color: #66cc66;">&#40;</span>scene, <span style="color: #0066CC;">camera</span>, viewport<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Enjoy <img src='http://flexgraphix.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/FlashCafe/~4/QXMqvcTXeQE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flexgraphix.com/blog/?feed=rss2&amp;p=101</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flexgraphix.com/blog/?p=101#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=hypepapervision3d-demo</feedburner:origLink></item>
		<item>
		<title>Hyped about Hype</title>
		<link>http://feedproxy.google.com/~r/FlashCafe/~3/tOC6bRUXwqA/</link>
		<comments>http://flexgraphix.com/blog/?p=84#comments</comments>
		<pubDate>Fri, 30 Oct 2009 15:43:23 +0000</pubDate>
		<dc:creator>nebutch</dc:creator>
				<category><![CDATA[Actionscript 3.0]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[RIA]]></category>

		<guid isPermaLink="false">http://flexgraphix.com/blog/?p=84</guid>
		<description><![CDATA[I just came across one of the coolest AS3 toolkits I&#8217;ve seen in a long time &#8211; Hype. Basically, the point of Hype is to make UI design as easy and fast as possible. It includes commonly used algorithms used in visual and audio design such as grids, shapes, random placement, chaos patterns, and audio [...]]]></description>
			<content:encoded><![CDATA[<p>I just came across one of the coolest AS3 toolkits I&#8217;ve seen in a long time &#8211; <a href="http://hype.joshuadavis.com" target="_blank">Hype</a>. Basically, the point of Hype is to make UI design as easy and fast as possible. It includes commonly used algorithms used in visual and audio design such as grids, shapes, random placement, chaos patterns, and audio spectrum calculations. It&#8217;s also capable of calculations such as custom timing (run a callback every 2nd frame, etc) with minimal coding requirements, and a callback system that is much more efficient than AS3&#8242;s native Event system.</p>
<p>Another great feature is the use of Object pooling and unordered lists. The concept of this is to minimize Object creation (thereby keeping memory requirements as small as possible) by recycling Objects rather than recreating them on the fly. This is obviously a standard best practice when designing code projects, but Hype will do the dirty work for you and let you focus on the fun stuff.</p>
<p>From the looks of the intro video, the toolkit looks to be well-written using a combination of a core framework and an extension package (which is highly flexible and easily built upon). It looks like a minimal set is included for now, but I&#8217;m sure additional extension kits will be added along the way (plus allow developers to add/share there own).</p>
<p>The framework is slated for release on Saturday, October 31st.</p>
<p>Check out the video <a href="http://www.vimeo.com/channels/hype" target="_blank">HERE</a>, and the examples <a href="http://hype.joshuadavis.com" target="_blank">HERE</a>.</p>
<p>Happy coding <img src='http://flexgraphix.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/FlashCafe/~4/tOC6bRUXwqA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flexgraphix.com/blog/?feed=rss2&amp;p=84</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flexgraphix.com/blog/?p=84#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=hyped-about-hype</feedburner:origLink></item>
		<item>
		<title>Snow Leopard doesn’t like Flex Builder…</title>
		<link>http://feedproxy.google.com/~r/FlashCafe/~3/Dwlf_oVa72c/</link>
		<comments>http://flexgraphix.com/blog/?p=75#comments</comments>
		<pubDate>Tue, 13 Oct 2009 01:45:26 +0000</pubDate>
		<dc:creator>nebutch</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Web Authoring]]></category>

		<guid isPermaLink="false">http://flexgraphix.com/blog/?p=75</guid>
		<description><![CDATA[..or vice-versa. After starting my new gig with Almer/Blank today, I changed my workflow a bit to incorporate my Macbook along with an external 21&#8243; display. The primary development environment in our projects is Flex Builder. Well, the first thing I noticed when going in to edit a file was that the line numbers weren&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>..or vice-versa.</p>
<p>After starting my new gig with <a href="http://www.almerblank.com" target="_blank">Almer/Blank</a> today, I changed my workflow a bit to incorporate my Macbook along with an external 21&#8243; display. The primary development environment in our projects is Flex Builder.</p>
<p style="text-align: center;"><img class="size-full wp-image-76  aligncenter" title="FB_snowLeopardNOM" src="http://flexgraphix.com/blog/wp-content/uploads/2009/10/FB_snowLeopardNOM.jpg" alt="nom nom nom" width="450" height="338" /></p>
<p>Well, the first thing I noticed when going in to edit a file was that the line numbers weren&#8217;t tracking correctly with the page scrolling. I figured that this was a fluke, so I tried restarting Flex Builder. Nothing. Tried again. No go. With some tight deadlines, I kind of put that aside and pushed through without using line numbers (which really sucks, if you get used to relying on them like me). After things slowed down a little, I came across this bug ticket:<span id="more-75"></span></p>
<p><a href="http://bugs.adobe.com/jira/browse/FB-23023" target="_blank">http://bugs.adobe.com/jira/browse/FB-23023</a></p>
<p>Basically, the problem arises when using Flex in an external display. Also, it seemed to crop up with the release of Snow Leopard.</p>
<p>So, if you&#8217;re reading this and have the same issue or know someone who does, please do us a solid and place a vote for that ticket <img src='http://flexgraphix.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>On another note, I&#8217;ve also noticed quite a lag when using Flex Builder on the mac lately. I had to force quit today when working on a fairly light project, and I&#8217;ve read that others have had performance issues with FB that are related to Snow Leopard. Furthermore, these issues seem to be relevant for both FB3 and FB4&#8230; interesting&#8230;</p>
<p>UPDATE 11/11/2009 &#8211; Not to jump to any conclusions, but it&#8217;s starting to look like Adobe has taken notice of this issue. According to the comments by &#8220;Jason San Jose&#8221; (Adobe) for the bug ticket in question, this seems to possibly be an issue with Eclipse (and furthermore, with the Carbon based builds). The good news is that someone has taken notice, but the bad is that a fix for the issue might be out of Adobe&#8217;s hands for the time being&#8230;</p>
<img src="http://feeds.feedburner.com/~r/FlashCafe/~4/Dwlf_oVa72c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flexgraphix.com/blog/?feed=rss2&amp;p=75</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://flexgraphix.com/blog/?p=75#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=snow-leopard-doesnt-like-flex-builder</feedburner:origLink></item>
		<item>
		<title>Are you a dick?</title>
		<link>http://feedproxy.google.com/~r/FlashCafe/~3/dFJGXfcuLHw/</link>
		<comments>http://flexgraphix.com/blog/?p=64#comments</comments>
		<pubDate>Fri, 10 Apr 2009 23:21:28 +0000</pubDate>
		<dc:creator>nebutch</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://flexgraphix.com/blog/?p=64</guid>
		<description><![CDATA[I came across the following image on Fark.com, and something about it tickled my geek bone.]]></description>
			<content:encoded><![CDATA[<p>I came across the following image on Fark.com, and something about it tickled my geek bone.</p>
<p><img src="http://flexgraphix.com/blog/wp-content/uploads/2009/04/how-many-digits-of-pi-do-you-know.gif" alt="PI" width="500" border="1" height="329" /></p>
<img src="http://feeds.feedburner.com/~r/FlashCafe/~4/dFJGXfcuLHw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flexgraphix.com/blog/?feed=rss2&amp;p=64</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flexgraphix.com/blog/?p=64#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=are-you-a-dick</feedburner:origLink></item>
		<item>
		<title>From FlashDevelop to xCode : Duplicate Line</title>
		<link>http://feedproxy.google.com/~r/FlashCafe/~3/nTLJnJBtyL0/</link>
		<comments>http://flexgraphix.com/blog/?p=62#comments</comments>
		<pubDate>Mon, 06 Apr 2009 02:12:25 +0000</pubDate>
		<dc:creator>nebutch</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[xCode]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://flexgraphix.com/blog/?p=62</guid>
		<description><![CDATA[So over the past month or so, I&#8217;ve decided to delve into the wonderful world of Objective-C and Cocoa. I&#8217;ve been using xCode as my primary IDE, and so far I love it. However, one nagging issue about xCode is that there is no &#8220;Duplicate Line&#8221; or &#8220;Delete Line&#8221; hotkey as there is in FlashDevelop, [...]]]></description>
			<content:encoded><![CDATA[<p>So over the past month or so, I&#8217;ve decided to delve into the wonderful world of Objective-C and Cocoa. I&#8217;ve been using xCode as my primary IDE, and so far I love it. However, one nagging issue about xCode is that there is no &#8220;Duplicate Line&#8221; or &#8220;Delete Line&#8221; hotkey as there is in FlashDevelop, which I&#8217;ve been using for years for most of my AS development. While I *could* try to get used to the old &#8220;Option&#8221; + drag method or copy/paste, I found myself spoiled by the quick hotkey action that FD offers (which by default is Ctrl+D for duplicating and Ctrl+Shift+D for deleting. There&#8217;s also a handy &#8220;transpose&#8221; hotkey, which I won&#8217;t go into).</p>
<p>So doing some research, I came across a couple of options. One option requires that you create a User Script in xCode and assign whatever hotkey to that. You can find more information <a href="http://thekitchentowel.blogspot.com/2009/02/xcode-user-scripts-to-duplicate-lines.html">HERE</a>. I decided not to use that solution because there was no &#8220;Delete line&#8221; code source, and I frankly wasn&#8217;t in the mood to learn Ruby in order to customize my own script (yet).</p>
<p>The second option is to create a Dictionary file and customize your script very easily using the <a href="http://www.erasetotheleft.com/post/mac-os-x-key-bindings/">Mac OSX Key Binding</a> documentation as a reference. Here&#8217;s what you do:</p>
<p>- Create a new .dict file in the following directory : <em>home/Library/KeyBindings/PBKeyBinding.dict</em><br />
Note : If the <em>KeyBindings</em> directory does not exist, you&#8217;ll need to create it.</p>
<p>- Add the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&#123;</span>
<span style="color: #ff0000;">&quot;^$K&quot;</span> = <span style="color: #66cc66;">&#40;</span>
<span style="color: #ff0000;">&quot;selectLine:&quot;</span>,
<span style="color: #ff0000;">&quot;cut:&quot;</span>
<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #ff0000;">&quot;^$D&quot;</span> = <span style="color: #66cc66;">&#40;</span>
<span style="color: #ff0000;">&quot;selectLine:&quot;</span>,
<span style="color: #ff0000;">&quot;copy:&quot;</span>,
<span style="color: #ff0000;">&quot;moveToEndOfLine:&quot;</span>,
<span style="color: #ff0000;">&quot;insertNewline:&quot;</span>,
<span style="color: #ff0000;">&quot;paste:&quot;</span>,
<span style="color: #ff0000;">&quot;deleteBackward:&quot;</span>
<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>- Save the file, restart xCode if it was already open.</p>
<p>So with the above code, placing the cursor within any line then hitting the key combo &#8216;Control + Shift + K&#8217; will delete that entire line, and hitting &#8216;Control + Shift + D&#8217; will duplicate it.</p>
<p>Thanks to <a href="http://www.typeoneerror.com/custom-key-bindings-in-xcode-for-textmate-users/">TypeOneError</a> for posting the initial info on this. One thing that I did change from the original code is that I added a &#8220;deleteBackward&#8221; command at the end of the Duplicate Line section. This will place the cursor back at the end of the line just created, rather than at the beginning of a new line (which is more like what FD&#8217;s behavior is). The obvious beauty of this is that you can recursively hit the hotkey combo and duplicate lines without having to place your cursor back up into the previous one. You can further customize or add other bindings by referencing the <a href="http://www.erasetotheleft.com/post/mac-os-x-key-bindings/">Mac OSX Key Bindings documentation</a>.</p>
<p>I may delve into this a bit more and see about a &#8216;Transpose&#8217; hotkey, which switches placement of the last two selected lines of code, but I&#8217;m in no hurry.</p>
<img src="http://feeds.feedburner.com/~r/FlashCafe/~4/nTLJnJBtyL0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flexgraphix.com/blog/?feed=rss2&amp;p=62</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://flexgraphix.com/blog/?p=62#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=from-flashdevelop-to-xcode-duplicate-line</feedburner:origLink></item>
		<item>
		<title>Merry Christmas!</title>
		<link>http://feedproxy.google.com/~r/FlashCafe/~3/tLOrlLor-jY/</link>
		<comments>http://flexgraphix.com/blog/?p=59#comments</comments>
		<pubDate>Wed, 24 Dec 2008 03:05:32 +0000</pubDate>
		<dc:creator>nebutch</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://flexgraphix.com/blog/?p=59</guid>
		<description><![CDATA[To celebrate both the holiday and my new gig with Animax Entertainment, here&#8217;s a little Christmas diddy. Canadian style, eh. [There is a video that cannot be displayed in this feed. Visit the blog entry to see the video.]]]></description>
			<content:encoded><![CDATA[<p>To celebrate both the holiday and my new gig with <a href="http://www.animaxent.com" target="_blank">Animax Entertainment</a>, here&#8217;s a little Christmas diddy. Canadian style, eh. <img src='http://flexgraphix.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[There is a video that cannot be displayed in this feed. <a href="http://flexgraphix.com/blog/?p=59">Visit the blog entry to see the video.]</a></p>
<img src="http://feeds.feedburner.com/~r/FlashCafe/~4/tLOrlLor-jY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flexgraphix.com/blog/?feed=rss2&amp;p=59</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://flexgraphix.com/blog/?p=59#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=merry-christmas</feedburner:origLink></item>
		<item>
		<title>Mr. President</title>
		<link>http://feedproxy.google.com/~r/FlashCafe/~3/LqsR2mThB70/</link>
		<comments>http://flexgraphix.com/blog/?p=53#comments</comments>
		<pubDate>Wed, 05 Nov 2008 06:39:32 +0000</pubDate>
		<dc:creator>nebutch</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://flexgraphix.com/blog/?p=53</guid>
		<description><![CDATA[Congratulations, Barack Obama! I&#8217;m definitely proud as an American that we as a Nation came together and voted for change. Now that we chose, let&#8217;s all make sure that we stand behind our new President and do our parts to steer the USA into better waters &#8211; Democrats and Republicans alike.]]></description>
			<content:encoded><![CDATA[<p>Congratulations, Barack Obama!</p>
<p><img src="http://flexgraphix.com/blog/wp-content/uploads/2008/11/small_obama_image.jpg" alt="small_obama_image.jpg" /></p>
<p>I&#8217;m definitely proud as an American that we as a Nation came together and voted for change. Now that we chose, let&#8217;s all make sure that we stand behind our new President and do our parts to steer the USA into better waters &#8211; Democrats and Republicans alike.</p>
<img src="http://feeds.feedburner.com/~r/FlashCafe/~4/LqsR2mThB70" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://flexgraphix.com/blog/?feed=rss2&amp;p=53</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://flexgraphix.com/blog/?p=53#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mr-president</feedburner:origLink></item>
	</channel>
</rss>
