<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.4" -->
<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/"
	>

<channel>
	<title>tripleaxis.com</title>
	<link>http://www.tripleaxis.com/blog</link>
	<description>Stuff about me, my life, flash dev and some random php stuff too.</description>
	<pubDate>Thu, 10 Jul 2008 10:40:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>
	<language>en</language>
			<item>
		<title>Hear no evil?</title>
		<link>http://www.tripleaxis.com/blog/index.php/archives/188</link>
		<comments>http://www.tripleaxis.com/blog/index.php/archives/188#comments</comments>
		<pubDate>Thu, 12 Jun 2008 14:02:49 +0000</pubDate>
		<dc:creator>Kim</dc:creator>
		
	<category>Personal</category>
	<category>Technology</category>
		<guid isPermaLink="false">http://www.tripleaxis.com/blog/?p=188</guid>
		<description><![CDATA[


Mobile phones playing music on public transport.
People answering phone calls in the cinema.
Is  common courtesy an outmoded concept, superceded by technology?


We&#8217;ve all sat there, angered and galled by arrogant, solipsist twats, playing tinny music from their phones.
There&#8217;s never a handy baseball bat when you need one, is there 
Now it seems there may be [...]]]></description>
			<content:encoded><![CDATA[<table>
<tr>
<td><img align="left" style="border: 1px solid #dddddd; padding: 4px" alt="deafening" title="deafening" src="http://www.tripleaxis.com/blog/wp-content/deafening.jpg" /></td>
<td valign="top">Mobile phones playing music on public transport.</p>
<p>People answering phone calls in the cinema.</p>
<p>Is  common courtesy an outmoded concept, superceded by technology?</td>
</tr>
</table>
<p>We&#8217;ve all sat there, angered and galled by arrogant, <span class="secondary-bf">solipsist </span>twats, playing tinny music from their phones.</p>
<p>There&#8217;s never a handy baseball bat when you need one, is there <img src='http://www.tripleaxis.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Now it seems there may be salvation on the horizon - DMP or &#8216;Digital Manners Policy&#8217;.</p>
<p>Microsoft has recently filed a patent for DMP, which is intended to work similarly to the RFID (proximity activated) chips that we see in shop alarm systems, etc.. The idea being that public areas like hospitals, cinemas, aeroplanes and (i pray) public transport can automatically switch mobile devices into standby, flight or silent mode. Thereby avoiding the need for public beatings, ABH and destruction of personal property <img src='http://www.tripleaxis.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a title="Manners In a Digital Age" target="_blank" href="http://arstechnica.com/news.ars/post/20080611-microsoft-patent-brings-miss-manners-into-the-digital-age.html">http://arstechnica.com/&#8230;/manners-into-the-digital-age.html </a>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.tripleaxis.com/blog/index.php/archives/188/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Drugfucked</title>
		<link>http://www.tripleaxis.com/blog/index.php/archives/190</link>
		<comments>http://www.tripleaxis.com/blog/index.php/archives/190#comments</comments>
		<pubDate>Wed, 04 Jun 2008 00:24:06 +0000</pubDate>
		<dc:creator>Kim</dc:creator>
		
	<category>Flash</category>
	<category>Client Projects</category>
		<guid isPermaLink="false">http://www.tripleaxis.com/blog/?p=190</guid>
		<description><![CDATA[
Fun little (ahem) viral project for the Terrence Higgins Trust to promote awareness in HIV+ gay clubbers who indulge in recreational drugs as to their effect on whatever HIV meds they may be taking.
http://drugfucked.tht.org.uk/
Another AS3 project - all a bit hack and slash, though, as time was limited and the focus was on getting the [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" title="Drugfucked" href="http://drugfucked.tht.org.uk/"><img alt="drugfucked" title="drugfucked" style="border: 1px solid #dddddd; padding: 4px" src="http://www.tripleaxis.com/blog/wp-content/drugfucked.jpg" /></a></p>
<p>Fun little (ahem) <em>viral</em> project for the Terrence Higgins Trust to promote awareness in HIV+ gay clubbers who indulge in recreational drugs as to their effect on whatever HIV meds they may be taking.</p>
<p><a title="Drugfucked" target="_blank" href="http://drugfucked.tht.org.uk/">http://drugfucked.tht.org.uk/</a></p>
<p>Another AS3 project - all a bit hack and slash, though, as time was limited and the focus was on getting the best result with the resources available.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.tripleaxis.com/blog/index.php/archives/190/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Papervision3D - first steps</title>
		<link>http://www.tripleaxis.com/blog/index.php/archives/185</link>
		<comments>http://www.tripleaxis.com/blog/index.php/archives/185#comments</comments>
		<pubDate>Tue, 27 May 2008 13:37:52 +0000</pubDate>
		<dc:creator>Kim</dc:creator>
		
	<category>Flash</category>
	<category>Development</category>
		<guid isPermaLink="false">http://www.tripleaxis.com/blog/?p=185</guid>
		<description><![CDATA[Finally got some down time here at work and figured I&#8217;d have a poke around in this Papervision stuff.
Have always managed to stave off working with 3D in the past, but from what I&#8217;d seen of it, Papervision looked like it had made the whole process a hell of a lot simpler and more manageable.
Found [...]]]></description>
			<content:encoded><![CDATA[<p>Finally got some down time here at work and figured I&#8217;d have a poke around in this <a title="Papervision3D" target="_blank" href="http://blog.papervision3d.org">Papervision</a> stuff.</p>
<p>Have always managed to stave off working with 3D in the past, but from what I&#8217;d seen of it, Papervision looked like it had made the whole process a hell of a lot simpler and more manageable.</p>
<p>Found a few really good resources and did a few demos:</p>
<p><strong>(click card to flip)</strong></p>
<p><code>[kml_flashembed movie="http://www.tripleaxis.com/code/flash/FlipCard.swf" height="300" width="400"</code><code> fversion="9" </code><code><code>useexpressinstall="true" </code><code>/]</code></code></p>
<p>Need to find an excuse to do a site with it now <img src='http://www.tripleaxis.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.tripleaxis.com/blog/index.php/archives/185/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Cheese Rolling</title>
		<link>http://www.tripleaxis.com/blog/index.php/archives/187</link>
		<comments>http://www.tripleaxis.com/blog/index.php/archives/187#comments</comments>
		<pubDate>Tue, 27 May 2008 13:19:55 +0000</pubDate>
		<dc:creator>Kim</dc:creator>
		
	<category>Personal</category>
		<guid isPermaLink="false">http://www.tripleaxis.com/blog/?p=187</guid>
		<description><![CDATA[Took a trip down to the Gloucester Cheese Rolling event near Cheltenham yesterday. Drenched, muddied and exhausted from half-running up the hill, we managed to squeeze through the crowd to catch the last official race.
There we a couple of unofficial (sans fromage) runs after that, so our voyeurism was sated and I got some great [...]]]></description>
			<content:encoded><![CDATA[<p>Took a trip down to the Gloucester Cheese Rolling event near Cheltenham yesterday. Drenched, muddied and exhausted from half-running up the hill, we managed to squeeze through the crowd to catch the last official race.<br />
There we a couple of unofficial (sans fromage) runs after that, so our voyeurism was sated and I got some <a title="CheeseSnaps" target="_blank" href="http://www.flickr.com/photos/tripleaxis/sets/72157605263204462/">great snaps</a> <img src='http://www.tripleaxis.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
[kml_flashembed movie=&#8221;http://www.flickr.com/apps/video/stewart.swf?v=49235&#8243; height=&#8221;300&#8243; width=&#8221;400&#8243; fvars=&#8221;intl_lang=en-us&#038;photo_secret=95c59df0f3&#038;photo_id=2526093932&#8243; /]
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.tripleaxis.com/blog/index.php/archives/187/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>G33k == c001</title>
		<link>http://www.tripleaxis.com/blog/index.php/archives/186</link>
		<comments>http://www.tripleaxis.com/blog/index.php/archives/186#comments</comments>
		<pubDate>Sun, 25 May 2008 00:13:57 +0000</pubDate>
		<dc:creator>Kim</dc:creator>
		
	<category>Personal</category>
		<guid isPermaLink="false">http://www.tripleaxis.com/blog/?p=186</guid>
		<description><![CDATA[&#8230;or so says the New York Times.

]]></description>
			<content:encoded><![CDATA[<p>&#8230;or so says the <a target="_blank" title="Alpha Geeks" href="http://www.nytimes.com/2008/05/23/opinion/23brooks.html">New York Times</a>.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.tripleaxis.com/blog/index.php/archives/186/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Sony GT5 Prologue</title>
		<link>http://www.tripleaxis.com/blog/index.php/archives/189</link>
		<comments>http://www.tripleaxis.com/blog/index.php/archives/189#comments</comments>
		<pubDate>Thu, 15 May 2008 00:10:48 +0000</pubDate>
		<dc:creator>Kim</dc:creator>
		
	<category>Flash</category>
	<category>Client Projects</category>
		<guid isPermaLink="false">http://www.tripleaxis.com/blog/?p=189</guid>
		<description><![CDATA[
Just a note to mention so recent work for the Sony GT5 Prologue game.
http://www.granturismoworld.com/
Nothing too special about this project. There&#8217;s some nice, balanced HTML/Flash integration demonstrated in the expanding flash menu that sits over the other HTML/Flash main content.
One nice feature is a Local Connection controlled auto-pause of the in-page videos whenever the flash menu [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" title="GT5 Prologue" href="http://www.granturismoworld.com/"><img title="GT5 Prologue" alt="GT5 Prologue" style="border: 1px solid #dddddd; padding: 4px" src="http://www.tripleaxis.com/blog/wp-content/gt5prologue.jpg" /></a></p>
<p>Just a note to mention so recent work for the Sony GT5 Prologue game.</p>
<p><a title="GT5 Prologue Site" target="_blank" href="http://www.granturismoworld.com/">http://www.granturismoworld.com/</a></p>
<p>Nothing too special about this project. There&#8217;s some nice, balanced HTML/Flash integration demonstrated in the expanding flash menu that sits over the other HTML/Flash main content.</p>
<p>One nice feature is a Local Connection controlled auto-pause of the in-page videos whenever the flash menu is opened - and subsequent resume when it closes. The idea revolves around a satellite and controller system - the in-page videos register themselves with the menu (the controller) and then listen for events from the menu.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.tripleaxis.com/blog/index.php/archives/189/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>UINT</title>
		<link>http://www.tripleaxis.com/blog/index.php/archives/183</link>
		<comments>http://www.tripleaxis.com/blog/index.php/archives/183#comments</comments>
		<pubDate>Wed, 14 May 2008 23:46:26 +0000</pubDate>
		<dc:creator>Kim</dc:creator>
		
	<category>Flash</category>
		<guid isPermaLink="false">http://www.tripleaxis.com/blog/?p=183</guid>
		<description><![CDATA[Found a nice way to use uints' default value to my advantage. Have started using them for all my identifier constants in my apps. As they default to 0 (zero) even when uninitialised, as long as I make sure all my constants have a minimum value of 1, all I need to do is set [...]]]></description>
			<content:encoded><![CDATA[<p>Found a nice way to use uints' default value to my advantage. Have started using them for all my identifier constants in my apps. As they default to 0 (zero) even when uninitialised, as long as I make sure all my constants have a minimum value of 1, all I need to do is set up a global NULL constant of 0 and compare any class properties to that.<br />
I can test properties regardless whether they've been initialised or not, so no more looking for nulls or empty strings, etc.</p>
<div class="igBar"><span id="lactionscript-2"><a href="#" onclick="javascript:showPlainTxt('actionscript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span><br />
<div id="actionscript-2">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #0066CC;">static</span> const <span style="color: #000000; font-weight: bold;">NULL</span>:uint = <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #0066CC;">static</span> const STATE_LOADING:uint = <span style="color: #cc66cc;color:#800000;">1</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #0066CC;">static</span> const STATE_LOADED:uint = <span style="color: #cc66cc;color:#800000;">2</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> state:uint;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//check state before it has been set:</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span> state == <span style="color: #000000; font-weight: bold;">NULL</span> <span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// true - not inititalised </span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.tripleaxis.com/blog/index.php/archives/183/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Dynamic font loading in AS3</title>
		<link>http://www.tripleaxis.com/blog/index.php/archives/182</link>
		<comments>http://www.tripleaxis.com/blog/index.php/archives/182#comments</comments>
		<pubDate>Wed, 14 May 2008 20:31:33 +0000</pubDate>
		<dc:creator>Kim</dc:creator>
		
	<category>Flash</category>
		<guid isPermaLink="false">http://www.tripleaxis.com/blog/?p=182</guid>
		<description><![CDATA[Always a particularly uncomfortable stone in actionscript's boot, dynamically loading fonts at runtime has always been difficult. Many of my projects in the past have used library fonts as runtime shared libraries from the standpoint that once downloaded, it'll be available across projects. It was never the cleanest of solutions and besides, the entire font [...]]]></description>
			<content:encoded><![CDATA[<p>Always a particularly uncomfortable stone in actionscript's boot, dynamically loading fonts at runtime has always been difficult. Many of my projects in the past have used library fonts as runtime shared libraries from the standpoint that once downloaded, it'll be available across projects. It was never the cleanest of solutions and besides, the entire font had to be loaded - no choosing which character sets to embed, it was all or nothing.</p>
<p>This didn't solve the problem of catering to markets that required special fonts that supported either greek or east asian character sets. I once got round the problem with one of our jaguar sites by an elaborate level loading process that I forget now and probably couldn't explain any more <img src='http://www.tripleaxis.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Enter AS3 and the magical <a title="Livedocs - getDefinitionByName()" target="_blank" href="http://livedocs.adobe.com/flex/2/langref/flash/utils/package.html#getDefinitionByName()">getDefinitionByName()</a> method. With it, you can retrieve and instantiate classes as long as you know their fully qualified class names. Yes - even from loaded SWFs.</p>
<p>From there, all you need do is embed a font (explicitly specifying the unicode ranges of character outlines that you want) into a class inside a SWF, load that swf at run-time and extract the font from it. Add it to your main SWF's fontlist and it's instantly available to use!</p>
<p>Granted, I <em>may</em> have simplified my description a tad, but those are the essentials. In my latest AS3 project, my initial setup loads a config XML file, a localised copy file, a CSS styles file and a handfull of fonts needed to render the text within the app. Should I need to configure the application for the Japanese market for example, I can completely reconfigure the app and it's fonts to support the Japanese characters <strong>without</strong> republishing.</p>
<p>Now that's how it's supposed to be!!</p>
<p>Check these articles out for a more detailed explanation:</p>
<p><a target="_blank" href="http://www.betriebsraum.de/blog/2007/06/22/runtime-font-loading-with-as3-flash-cs3-not-flex/">http://www.betriebsraum.de/...runtime-font-loading-with-as3/</a><br />
<a target="_blank" href="http://www.mikechambers.com/blog/2006/06/22/actionscript-3-get-a-class-reference-by-class-name/">http://www.mikechambers.com/...class-reference-by-class-name/</a><br />
<a target="_blank" href="http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding-in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/">http://www.scottgmorgan.com/...runtime-font-embedding-in-as3/</a>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.tripleaxis.com/blog/index.php/archives/182/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Google Calendar Bookmarklet</title>
		<link>http://www.tripleaxis.com/blog/index.php/archives/181</link>
		<comments>http://www.tripleaxis.com/blog/index.php/archives/181#comments</comments>
		<pubDate>Wed, 14 May 2008 16:54:40 +0000</pubDate>
		<dc:creator>Kim</dc:creator>
		
	<category>Development</category>
		<guid isPermaLink="false">http://www.tripleaxis.com/blog/?p=181</guid>
		<description><![CDATA[Was messing around today and came up with a little bookmarklet to create a new Calendar event.
I'm sure it could be greatly improved upon, but for a quick click thing, it's pretty useful. It takes the Title of the page as the event and prompts you for a date/time. Haven't tested it without being logged [...]]]></description>
			<content:encoded><![CDATA[<p>Was messing around today and came up with a little bookmarklet to create a new Calendar event.</p>
<p>I'm sure it could be greatly improved upon, but for a quick click thing, it's pretty useful. It takes the Title of the page as the event and prompts you for a date/time. Haven't tested it without being logged into my google account, so no guarantees there <img src='http://www.tripleaxis.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Create a new link in the links bar of your browser and paste the following javascript as the URL. (note:IE will say something about the protocol, but just ignore it)</p>
<blockquote><p><span style="font-size: 8pt">javascript: function pad(d){ return d&lt;10?"0"+d:d; } function gdate(d,t){ var da = d.split( "/" ); var s = da[2] + pad(Number(da[1])) + pad(Number(da[0])); if( t ) { ta = t.split( ":" ); s += "T" + pad(Number(ta[0])) + pad(Number(ta[1])) + "00Z"; } return s;  } var d = new Date(); var date = prompt( "Enter Event Date (DD/MM/YYYY): ",pad(d.getDate()) + "/" + pad(d.getMonth()+1) + "/" + d.getFullYear() ); if( date!=null ) { var time =  prompt( "Enter Event Start Time in 24 clock format (HH:MM):\n(leave blank for an 'All-Day Event')",pad(d.getHours()) + ":" + pad(d.getMinutes()) );  if( time!=null ) { var gd = gdate(date,time); var w = window.open( 'http://www.google.com/calendar/event?action=TEMPLATE&#038;text=' + document.title + '&#038;dates=' + gd + '/' + gd + '&#038;details=' + escape( document.location ) ); } } void(0);</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRSS>http://www.tripleaxis.com/blog/index.php/archives/181/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Ped&#8217;s back!</title>
		<link>http://www.tripleaxis.com/blog/index.php/archives/179</link>
		<comments>http://www.tripleaxis.com/blog/index.php/archives/179#comments</comments>
		<pubDate>Wed, 14 May 2008 16:03:55 +0000</pubDate>
		<dc:creator>Kim</dc:creator>
		
	<category>Personal</category>
	<category>Flash</category>
		<guid isPermaLink="false">http://www.tripleaxis.com/blog/?p=179</guid>
		<description><![CDATA[An old friend of mine that i basically learned flash with - who had given up the coding life - recently emailed me to let me know that he was getting back into Flash (and AS3).
We were hacking code out back in the days when the flash world was rejoicing at being able to enter [...]]]></description>
			<content:encoded><![CDATA[<p>An old friend of mine that i basically <em>learned</em> flash with - who had given up the coding life - recently emailed me to let me know that he was getting back into Flash (and AS3).<br />
We were hacking code out back in the days when the flash world was rejoicing at being able to enter free-text code into the actions panel for the first time and emulating the new-fangled 'event-driven' stuff was the latest thing <img src='http://www.tripleaxis.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . He 'got out' just before AS2 really kicked in, so essentially he now has to make the leap from AS1 all the way to AS3. That's gotta be more than just a minor shock to the system!</p>
<p>Anyway, good to have you back, fella! Look forward to seeing what you get up to <img src='http://www.tripleaxis.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.tripleaxis.com/blog/index.php/archives/179/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
