<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jamie White</title>
	<atom:link href="http://www.jamie-white.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jamie-white.com</link>
	<description>Interactive Developer (Manchester / UK)</description>
	<lastBuildDate>Thu, 16 Feb 2012 19:04:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>WinAnt: Unable to locate tools.jar (solved)</title>
		<link>http://www.jamie-white.com/as3/winant-problem-unable-to-locate-tools-jar-solved/</link>
		<comments>http://www.jamie-white.com/as3/winant-problem-unable-to-locate-tools-jar-solved/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 17:49:27 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://www.jamie-white.com/?p=1014</guid>
		<description><![CDATA[I thought I&#8217;d post this to save some time for people. I was setting up WinAnt to run the build script for HTML5 Boilerplate and was thrown an error. It said &#8216;unable to locate tools.jar&#8230;&#8221;. I found out that I needed to point the JAVA_HOME path in windows, to the JDK I had just installed. It [...]]]></description>
			<content:encoded><![CDATA[<p>I thought I&#8217;d post this to save some time for people.</p>
<p>I was setting up WinAnt to run the build script for <a title="HTML5 Boilerplate" href="http://html5boilerplate.com/docs/Build-script/" target="_blank">HTML5 Boilerplate</a> and was thrown an error. It said &#8216;unable to locate tools.jar&#8230;&#8221;. I found out that I needed to point the JAVA_HOME path in windows, to the JDK I had just installed. It was pointing at JRE, which was the problem.</p>
<blockquote><p>SOLUTION: Set JAVA_HOME to the correct path:</p>
<p>C:\&gt;set JAVA_HOME=C:\Program Files\Java\{JDE folder name}</p></blockquote>
<p>Problem solved.</p>
<p>&nbsp;</p>
<p><a href="http://forums.devshed.com/showpost.php?p=2472542&amp;postcount=9">http://forums.devshed.com/showpost.php?p=2472542&amp;postcount=9</a><br/><a href="http://stackoverflow.com/questions/7697044/ant-and-eclipse">http://stackoverflow.com/questions/7697044/ant-and-eclipse</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamie-white.com/as3/winant-problem-unable-to-locate-tools-jar-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PlayStation Unwrapped!</title>
		<link>http://www.jamie-white.com/as3/playstation-unwrapped/</link>
		<comments>http://www.jamie-white.com/as3/playstation-unwrapped/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 01:16:19 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.jamie-white.com/?p=979</guid>
		<description><![CDATA[Here&#8217;s a little something we put together for SCEE this Christmas. They have been having a free gift givaway. No catch! Pure free gifty goodness! There were some amazing prizes to win, and a big juicy present to throw about to give you a clue to what&#8217;s inside!!!! Hurry, it ends in two days!! Oh [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a little something we put together for SCEE this Christmas. They have been having a free gift givaway. No catch! Pure free gifty goodness! There were some amazing prizes to win, and a big juicy present to throw about to give you a clue to what&#8217;s inside!!!!</p>
<p><del>Hurry, it ends in two days!!</del></p>
<p>Oh well! It&#8217;s all finished now. According to our stats 311,377 people unwrapped 474,436 layers!! Not bad going.</p>
<p>Merry Christmas!</p>
<p><a href="http://unwrapped.eu.playstation.com" target="_blank">http://unwrapped.eu.playstation.com/</a></p>
<p><a href="http://www.jamie-white.com/wp-content/uploads/2011/12/unwrapped_animate.gif" rel="shadowbox[post-979];player=img;"><img class="alignnone size-full wp-image-980" title="PlayStation Unwrapped" src="http://www.jamie-white.com/wp-content/uploads/2011/12/unwrapped_animate.gif" alt="" width="600" /></a></p>
<p><a href="http://www.jamie-white.com/wp-content/uploads/2011/12/unwrapped3.jpg" rel="shadowbox[post-979];player=img;"><img class="alignnone size-full wp-image-985" title="unwrapped3" src="http://www.jamie-white.com/wp-content/uploads/2011/12/unwrapped3.jpg" alt="" width="600" height="500" /></a></p>
<p><a href="http://www.jamie-white.com/wp-content/uploads/2011/12/unwrapped1.jpg" rel="shadowbox[post-979];player=img;"><img class="alignnone size-full wp-image-984" title="unwrapped1" src="http://www.jamie-white.com/wp-content/uploads/2011/12/unwrapped1.jpg" alt="" width="600" height="500" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamie-white.com/as3/playstation-unwrapped/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing npm on OSX</title>
		<link>http://www.jamie-white.com/node-js/installing-npm-on-osx/</link>
		<comments>http://www.jamie-white.com/node-js/installing-npm-on-osx/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 14:14:00 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://www.jamie-white.com/?p=948</guid>
		<description><![CDATA[I needed to install npm to setup socket.io. This actually works. 12$ sudo su $ curl http://npmjs.org/install.sh &#124; sh &#160; Easy.]]></description>
			<content:encoded><![CDATA[<p>I needed to install npm to setup socket.io. This actually works.</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo su<br />
$ curl http://npmjs.org/install.sh | sh</div></td></tr></tbody></table></div>
<p>&nbsp;</p>
<p>Easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamie-white.com/node-js/installing-npm-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Targeting Flash Player 11 &amp; AIR3 for Flash Builder 4.5</title>
		<link>http://www.jamie-white.com/as3/targeting-flashplayer-11-air3-for-flash-builder-4-5/</link>
		<comments>http://www.jamie-white.com/as3/targeting-flashplayer-11-air3-for-flash-builder-4-5/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 10:02:23 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://www.jamie-white.com/?p=929</guid>
		<description><![CDATA[Step-by-step for overlaying AIR3 into Flex 4.5.1, and targeting FP11. Unfortunately it&#8217;s a little bit complicated at the moment. So here&#8217;s what I&#8217;ve learnt. 1. First download these: Adobe AIR3 SDK PlayerGlobal.swc &#160; 2. In finder go to &#8220;Mac HD &#62; Applications &#62; Adobe Flash Builder 4.5 &#62; sdks&#8221; and duplicate &#8220;4.5.1&#8243;, rename it to [...]]]></description>
			<content:encoded><![CDATA[<p>Step-by-step for overlaying AIR3 into Flex 4.5.1, and targeting FP11. Unfortunately it&#8217;s a little bit complicated at the moment. So here&#8217;s what I&#8217;ve learnt.</p>
<p>1. First download these:</p>
<p><a title="AIR3 SDK" href="http://www.adobe.com/special/products/air/sdk/" target="_blank">Adobe AIR3 SDK</a></p>
<p><a title="playerglobal.swc" href="http://www.adobe.com/support/flashplayer/downloads.html" target="_blank">PlayerGlobal.swc</a></p>
<p>&nbsp;</p>
<p>2. In finder go to &#8220;Mac HD &gt; Applications &gt; Adobe Flash Builder 4.5 &gt; sdks&#8221; and duplicate &#8220;4.5.1&#8243;, rename it to &#8220;4.5.1-FP11&#8243; or something.</p>
<p>3. Create a folder 4.5.1-FP11/frameworks/libs/player/11.0/ and paste the downloaded playerglobal.swc inside (make sure you rename it to playerglobal.swc)</p>
<p>4. Place the Adobe AIR3 sdk .tbz2 file in the root of the sdk: &#8220;4.5.1-FP11/air3.tbz2&#8243;.</p>
<p>5. Mac OS: In Terminal, cd to the root directory of the new &#8220;4.5.1-FP11&#8243; and run this command:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tar jxvf air3X.tbz2</div></td></tr></tbody></table></div>
<p>6. Run Flashbuilder.</p>
<p>7. Create a new ActionScript project, then click &#8220;configure flex sdks&#8230;&#8221; then add your new one targeting FP11.</p>
<p>8. Create a new project, then edit html-template/index.template and add this after line 48:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">params.wmode ='direct';</div></td></tr></tbody></table></div>
<p>9. Right-click on your project in FB navigate to &#8220;Properties &gt; ActionScript Compiler&#8221;, then add the following compiler argument:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-swf-version=13</div></td></tr></tbody></table></div>
<p>&nbsp;</p>
<p>You should be good to go!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Other resources:</p>
<p>http://kb2.adobe.com/cps/495/cpsid_49532.html</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamie-white.com/as3/targeting-flashplayer-11-air3-for-flash-builder-4-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>functionToString: Return function name as String in AS3</title>
		<link>http://www.jamie-white.com/as3/function-name-to-string-as3/</link>
		<comments>http://www.jamie-white.com/as3/function-name-to-string-as3/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 09:34:34 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://www.jamie-white.com/?p=920</guid>
		<description><![CDATA[As simple as this: 12345678910111213141516171819202122232425import flash.utils.describeType; function functionToString&#40;target:*, f:Function&#41;:String &#123; &#160; var functionName:String = &#34;error!&#34;; &#160; var type:XML = describeType&#40;target&#41;;&#160; &#160; for each &#40;var node:XML in type..method&#41; &#123; &#160; &#160; if &#40;target&#91;node.@name&#93; == f&#41; &#123; &#160; &#160; &#160; functionName = node.@name; &#160; &#160; &#160; break; &#160; &#160; &#125; &#160; &#125; &#160; &#160; return functionName; &#125; [...]]]></description>
			<content:encoded><![CDATA[<p>As simple as this:</p>
<div class="codecolorer-container actionscript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">utils</span>.<span style="color: #006600;">describeType</span>;<br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> functionToString<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">target</span>:<span style="color: #66cc66;">*</span>, f:<span style="color: #000000; font-weight: bold;">Function</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">String</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">var</span> functionName:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;error!&quot;</span>;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">type</span>:<span style="color: #0066CC;">XML</span> = describeType<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">target</span><span style="color: #66cc66;">&#41;</span>;&nbsp; <br />
&nbsp; <span style="color: #b1b100;">for</span> <span style="color: #b1b100;">each</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> node:<span style="color: #0066CC;">XML</span> <span style="color: #b1b100;">in</span> <span style="color: #0066CC;">type</span>..<span style="color: #006600;">method</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">target</span><span style="color: #66cc66;">&#91;</span>node.<span style="color: #66cc66;">@</span><span style="color: #0066CC;">name</span><span style="color: #66cc66;">&#93;</span> == f<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; functionName = node.<span style="color: #66cc66;">@</span><span style="color: #0066CC;">name</span>;<br />
&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; <br />
&nbsp; <span style="color: #b1b100;">return</span> functionName;<br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> foo<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> bar<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>functionToString<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, foo<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// returns &quot;foo&quot;</span><br />
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>functionToString<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, bar<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// returns &quot;bar&quot;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.jamie-white.com/as3/function-name-to-string-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ableton Live to Flash (AS3)</title>
		<link>http://www.jamie-white.com/as3/ableton-live-to-flash-as3/</link>
		<comments>http://www.jamie-white.com/as3/ableton-live-to-flash-as3/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 17:14:00 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Play]]></category>
		<category><![CDATA[ableton]]></category>
		<category><![CDATA[Audio]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[live]]></category>
		<category><![CDATA[OSC]]></category>
		<category><![CDATA[vfx]]></category>
		<category><![CDATA[visualisation]]></category>
		<category><![CDATA[vj]]></category>

		<guid isPermaLink="false">http://www.jamie-white.com/?p=908</guid>
		<description><![CDATA[After seeing Surya Buchwald (http://www.mmmlabs.com) demoing Ableton Live to Flash at Flash on the Beach 2011, I had to find out how it was done. So I got in touch and was led to a link to download their &#8216;Music Event Description System&#8217;. It is a &#8216;Max for Live&#8217; addon that enables Ableton Live to [...]]]></description>
			<content:encoded><![CDATA[<p>After seeing Surya Buchwald (<a href="http://www.mmmlabs.com">http://www.mmmlabs.com</a>) demoing Ableton Live to Flash at <a href="http://www.flashonthebeach.com/">Flash on the Beach 2011</a>, I had to find out how it was done. So I got in touch and was led to a link to download their &#8216;Music Event Description System&#8217;. It is a &#8216;Max for Live&#8217; addon that enables Ableton Live to output OSC messages. I then recieve this data in Flosc which converts the OSC messages from UDP to XML so the data can be used in AS3 via an XML Socket. The rest is magic, and a couple of MovieClips <img src='http://www.jamie-white.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><iframe src="http://player.vimeo.com/video/29222231?portrait=0&amp;color=c9ff23" width="600" height="338" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamie-white.com/as3/ableton-live-to-flash-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Building &#8211; Flash Builder 4.5 / Molehill / Incubator / Broomstick</title>
		<link>http://www.jamie-white.com/as3/get-building-molehill-incubator-broomstick/</link>
		<comments>http://www.jamie-white.com/as3/get-building-molehill-incubator-broomstick/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 14:30:09 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://www.jamie-white.com/?p=894</guid>
		<description><![CDATA[All you Interactive Developers out there &#8211; get your free 60 day trial of FlashBuilder, the most recent version of Flex Hero SDK, the accompanying playerglobal.swc, and FlashPlayer 11 and start playing&#8230; Theres a load of info here about how to setup everything up.]]></description>
			<content:encoded><![CDATA[<p>All you Interactive Developers out there &#8211; get your <a href="http://www.adobe.com/cfusion/tdrc/index.cfm?product=flash_builder">free 60 day trial of FlashBuilder</a>, the most recent version of <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.5">Flex Hero SDK</a>, the <a href="http://labs.adobe.com/downloads/flashplatformruntimes_incubator.html">accompanying playerglobal.swc</a>, and <a href="http://labs.adobe.com/downloads/flashplatformruntimes_incubator.html">FlashPlayer 11</a> and start playing&#8230;</p>
<p>Theres <a href="http://www.disturbmedia.com/wiki/How_to_get_started_with_the_Molehill_API_and_Away3D_40.html#Molehill_in_Adobe_Flash_CS_5">a load of info here about how to setup everything up</a>.</p>
<p><a href="http://www.jamie-white.com/wp-content/uploads/2011/06/away3d_molehill_0.jpg" rel="shadowbox[post-894];player=img;"><img src="http://www.jamie-white.com/wp-content/uploads/2011/06/away3d_molehill_0.jpg" alt="" title="away3d_molehill_0" width="550" class="alignnone size-full wp-image-895" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamie-white.com/as3/get-building-molehill-incubator-broomstick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set Properties Function AS3</title>
		<link>http://www.jamie-white.com/as3/set-properties-function-as3/</link>
		<comments>http://www.jamie-white.com/as3/set-properties-function-as3/#comments</comments>
		<pubDate>Thu, 26 May 2011 08:53:41 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://www.jamie-white.com/?p=887</guid>
		<description><![CDATA[Here&#8217;s a simple, but very useful function that sets the properties of a specified target, with properties of an object. 1234567891011121314151617181920/** * Set properties from object */ function setProps&#40;$target:Object, $props:Object&#41;:void &#123; &#160; for&#40;var p:String in $props&#41; &#160; &#123; &#160; &#160; $target&#91;p&#93; = $props&#91;p&#93;; &#160; &#125; &#125; // Example use import flash.text.TextFormat; var props:Object = &#123;leading:12, [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a simple, but very useful function that sets the properties of a specified target, with properties of an object.</p>
<div class="codecolorer-container actionscript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">/**<br />
* Set properties from object<br />
*/</span><br />
<span style="color: #000000; font-weight: bold;">function</span> setProps<span style="color: #66cc66;">&#40;</span>$target:<span style="color: #0066CC;">Object</span>, $props:<span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> p:<span style="color: #0066CC;">String</span> <span style="color: #b1b100;">in</span> $props<span style="color: #66cc66;">&#41;</span><br />
&nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; $target<span style="color: #66cc66;">&#91;</span>p<span style="color: #66cc66;">&#93;</span> = $props<span style="color: #66cc66;">&#91;</span>p<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">// Example use</span><br />
<span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextFormat</span>;<br />
<br />
<span style="color: #000000; font-weight: bold;">var</span> props:<span style="color: #0066CC;">Object</span> = <span style="color: #66cc66;">&#123;</span><span style="color: #0066CC;">leading</span>:<span style="color: #cc66cc;">12</span>, <span style="color: #0066CC;">color</span>:0xFF0000, <span style="color: #0066CC;">size</span>:<span style="color: #cc66cc;">24</span><span style="color: #66cc66;">&#125;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> tf:<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>;<br />
<br />
setProps<span style="color: #66cc66;">&#40;</span>tf, props<span style="color: #66cc66;">&#41;</span>; &nbsp; &nbsp;<span style="color: #808080; font-style: italic;">// Set the properties of tf with props object</span><br />
<br />
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>tf.<span style="color: #0066CC;">leading</span> + <span style="color: #ff0000;">&quot;, &quot;</span> + tf.<span style="color: #0066CC;">color</span> + <span style="color: #ff0000;">&quot;, &quot;</span> + tf.<span style="color: #0066CC;">size</span><span style="color: #66cc66;">&#41;</span>; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// check the result</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.jamie-white.com/as3/set-properties-function-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>YouTube Player API &#8211; Sound but No Video (AS3 Gotcha)</title>
		<link>http://www.jamie-white.com/as3/ayoutube-player-api-as3-gotcha/</link>
		<comments>http://www.jamie-white.com/as3/ayoutube-player-api-as3-gotcha/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 12:13:15 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://www.jamie-white.com/?p=871</guid>
		<description><![CDATA[Here is a gotcha for the YouTube Player AS3 API . I was trying to use the chromeless player, hearing sound, but not seeing any video. The player was added to the display list, alpha=1, visible=true and it was the only display object. Solution&#8230; If you use the embedded player, you can call the player.resize() [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a gotcha for the YouTube Player AS3 API . I was trying to use the chromeless player, hearing sound, but not seeing any video. The player was added to the display list, alpha=1, visible=true and it was the only display object.</p>
<p>Solution&#8230;</p>
<p>If you use the embedded player, you can call the player.resize() method before the video is playing because the video has already been cued. But if you want to use the chromeless player, you can only call player.resize() after you have cued/loaded a video, not just when the player has dispatched the &#8216;ready&#8217; event.</p>
<p>Hope this helps someone!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamie-white.com/as3/ayoutube-player-api-as3-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Umbro 1350</title>
		<link>http://www.jamie-white.com/as3/umbro-1350/</link>
		<comments>http://www.jamie-white.com/as3/umbro-1350/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 20:03:56 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[LOVE.]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.jamie-white.com/?p=780</guid>
		<description><![CDATA[Here is a site I&#8217;ve been developing over the past couple of months at LOVE. It&#8217;s for Umbro&#8217;s global campaign for 1350. The custom module has been built to run on the existing Umbro Flash site. umbro.com/1350]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.umbro.com/#/1350/?locale=en_GB/" target="_blank">Here is a site</a> I&#8217;ve been developing over the past couple of months at <a href="http://www.lovecreative.com/" target="_blank">LOVE</a>. It&#8217;s for Umbro&#8217;s global campaign for 1350. The custom module has been built to run on the existing Umbro Flash site.</p>
<p><a href="http://www.umbro.com/#/1350/?locale=en_GB/" target="_blank">umbro.com/1350</a></p>
<p><iframe src="http://player.vimeo.com/video/19841656?portrait=0&amp;color=c9ff23" width="600" height="338" frameborder="0"></iframe></p>
<p><a rel="shadowbox; width=600; height=372;" href="http://www.jamie-white.com/wp-media/img/work/1350/0.jpg"><img src="/wp-media/img/work/1350/0.jpg" alt="Umbro 1350" width="600" height="372" /></a></p>
<p><a rel="shadowbox; width=600; height=372;" href="http://www.jamie-white.com/wp-media/img/work/1350/1.jpg"><img src="/wp-media/img/work/1350/1.jpg" alt="Umbro 1350" width="600" height="372" /></a></p>
<p><a rel="shadowbox; width=600; height=372;" href="http://www.jamie-white.com/wp-media/img/work/1350/2.jpg"><img src="/wp-media/img/work/1350/2.jpg" alt="Umbro 1350" width="600" height="372" /></a></p>
<p><a rel="shadowbox; width=600; height=372;" href="http://www.jamie-white.com/wp-media/img/work/1350/3.jpg"><img src="/wp-media/img/work/1350/3.jpg" alt="Umbro 1350" width="600" height="372" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamie-white.com/as3/umbro-1350/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

