<?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>BetaDesigns( Blog ).toString( );</title>
	<atom:link href="http://www.betadesigns.co.uk/Blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.betadesigns.co.uk/Blog</link>
	<description>Flex and Component Development</description>
	<lastBuildDate>Thu, 04 Feb 2010 00:29:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Custom Eclipse Style XCode shortcuts</title>
		<link>http://www.betadesigns.co.uk/Blog/2010/02/03/custom-xcode-shortcuts/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2010/02/03/custom-xcode-shortcuts/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 23:52:05 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[XCode tips]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[ecliplse]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=164</guid>
		<description><![CDATA[After using eclipse for so long i have become a custom to my shortcuts and xcode just doesn't stand up to the job as far as i am concerned so here is a small list of the custom key bindings i have setup for myself. I will add more as I create them.
To create a [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />After using eclipse for so long i have become a custom to my shortcuts and xcode just doesn't stand up to the job as far as i am concerned so here is a small list of the custom key bindings i have setup for myself. I will add more as I create them.</p>
<p>To create a custom key bindings file goto XCode&gt;Preferences&gt;Bindings&gt; Duplicate an existing binding and name it whatever you want then go to and open the file you just created in a text editor so you can see the xml output.</p>
<p><em>~/Library/Application Support/Xcode/Key Bindings/*.pbxkeys</em></p>
<p>A good list of available commands can be found <a href="http://www.erasetotheleft.com/post/mac-os-x-key-bindings/#comment-101" target="_blank">here</a></p>
<p><strong>1. Duplicate code!</strong></p>
<p>I can't believe xcode doesn't have this in Eclipse you simple select your text and press Ctrl + Alt and either Up or Down on the keypad and it will duplicate your code placing it either above or below the current selection. It will also reselect the newly duplicated code so that you can duplicate it as many times as you like.</p>
<div id="_mcePaste">&lt;key&gt;^~\U700&lt;/key&gt;</div>
<div id="_mcePaste">&lt;array&gt;</div>
<div id="_mcePaste">&lt;string&gt;copy:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;moveUp:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;moveToEndOfLine:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;insertLineBreak:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;insertNewLine:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;setMark:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;paste:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;selectToMark:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;/array&gt;</div>
<div id="_mcePaste">&lt;key&gt;^~\U701&lt;/key&gt;</div>
<div id="_mcePaste">&lt;array&gt;</div>
<div id="_mcePaste">&lt;string&gt;copy:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;moveDown:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;moveToBeginningOfLine:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;insertLineBreak:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;insertNewLine:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;moveUp:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;setMark:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;paste:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;string&gt;selectToMark:&lt;/string&gt;</div>
<div id="_mcePaste">&lt;/array&gt;</div>
<div><strong>2. Delete Line.</strong></div>
<div>Deletes the current line your cursor is on. press Ctrl + D.</div>
<div>
<div><span style="white-space: pre;">&lt;key&gt;^d&lt;/key&gt; </span></div>
<div><span style="white-space: pre;">&lt;array&gt; </span></div>
<div><span style="white-space: pre;">&lt;string&gt;cut:&lt;/string&gt; </span></div>
<div><span style="white-space: pre;">&lt;string&gt;selectLine:&lt;/string&gt; </span></div>
<div><span style="white-space: pre;">&lt;string&gt;cut:&lt;/string&gt; </span></div>
<div><span style="white-space: pre;">&lt;/array&gt;</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2010/02/03/custom-xcode-shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Iphone Development course</title>
		<link>http://www.betadesigns.co.uk/Blog/2010/01/10/138/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2010/01/10/138/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 20:42:18 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[iphone]]></category>
		<category><![CDATA[assignment1a.pdf]]></category>
		<category><![CDATA[assignment2a.pdf]]></category>
		<category><![CDATA[cs139p]]></category>
		<category><![CDATA[iphone development]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[stanford university]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=138</guid>
		<description><![CDATA[I have been meaning to start building an iphone application for some time now and recently stumbled across Stanfords CS193p iphone development course on ITunes U I have found it really useful especially the Assignments. more...
]]></description>
			<content:encoded><![CDATA[<p id="top" />I have been meaning to start building an iphone application for some time now and recently stumbled across Stanfords CS193p iphone development course on <a href="http://deimos.apple.com/WebObjects/Core.woa/Browsev2/itunes.stanford.edu">ITunes U</a> I have found it really useful especially the Assignments. <a href="http://www.betadesigns.co.uk/Blog/cs193p-iphone-development-course/">more...</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2010/01/10/138/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Japanese, Chinese or even Korean on UK Blackberry</title>
		<link>http://www.betadesigns.co.uk/Blog/2009/12/30/installing-japanese-chinese-or-even-korean-on-uk-blackberry/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2009/12/30/installing-japanese-chinese-or-even-korean-on-uk-blackberry/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 03:48:46 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[Japanese]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[chinese]]></category>
		<category><![CDATA[korean]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=129</guid>
		<description><![CDATA[Just in case anyone was having as much trouble as me installing one of the above languages onto their UK Blackberry I thought i would post this very useful link.
http://www.blackberryforums.com/general-8300-series-discussion-curve/151613-cjk-support-os-4-5-a.html
]]></description>
			<content:encoded><![CDATA[<p id="top" />Just in case anyone was having as much trouble as me installing one of the above languages onto their UK Blackberry I thought i would post this very useful link.</p>
<p>http://www.blackberryforums.com/general-8300-series-discussion-curve/151613-cjk-support-os-4-5-a.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2009/12/30/installing-japanese-chinese-or-even-korean-on-uk-blackberry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forcing Firefox to open Flex in the same window</title>
		<link>http://www.betadesigns.co.uk/Blog/2009/11/16/forcing-firefox-to-open-flex-in-the-same-window/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2009/11/16/forcing-firefox-to-open-flex-in-the-same-window/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 10:44:01 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=126</guid>
		<description><![CDATA[Using FireFox as your main browser when developing on Windows means that by default you end up getting loads of tabs for all your canceled debug sessions. In order to prevent this behavior simply type in
about:config
into the address bar and do a search for
browser.link.open_external
then change it's value from 3 to 1; this will make your [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />Using FireFox as your main browser when developing on Windows means that by default you end up getting loads of tabs for all your canceled debug sessions. In order to prevent this behavior simply type in<br />
about:config<br />
into the address bar and do a search for<br />
browser.link.open_external<br />
then change it's value from 3 to 1; this will make your flex debug session always appear in one tab.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2009/11/16/forcing-firefox-to-open-flex-in-the-same-window/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Binary Clock</title>
		<link>http://www.betadesigns.co.uk/Blog/2009/10/16/binary-clock/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2009/10/16/binary-clock/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 22:56:33 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[binary clock]]></category>
		<category><![CDATA[bits]]></category>
		<category><![CDATA[bytes]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[spark]]></category>
		<category><![CDATA[spark skins]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=118</guid>
		<description><![CDATA[I have been looking into bits, bytes and bit shifting a lot recently so I thought I would quickly make a small binary clock to help burn it into my mind. In addition it also gave me the chance to experiment with the spark skinning. Below is the result. Not pretty I know but thats [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />I have been looking into bits, bytes and bit shifting a lot recently so I thought I would quickly make a small binary clock to help burn it into my mind. In addition it also gave me the chance to experiment with the spark skinning. Below is the result. Not pretty I know but thats what the skinning is for.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_TestProject_437198183"
			class="flashmovie"
			width="169"
			height="92">
	<param name="movie" value="http://www.betadesigns.co.uk/Examples/BinaryClock/TestProject.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.betadesigns.co.uk/Examples/BinaryClock/TestProject.swf"
			name="fm_TestProject_437198183"
			width="169"
			height="92">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p><a href="http://www.betadesigns.co.uk/Examples/BinaryClock/srcview/">Full source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2009/10/16/binary-clock/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Code Optimization tricks</title>
		<link>http://www.betadesigns.co.uk/Blog/2009/10/14/code-optimization-tricks/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2009/10/14/code-optimization-tricks/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 08:03:37 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[bits]]></category>
		<category><![CDATA[bitswise]]></category>
		<category><![CDATA[maths]]></category>
		<category><![CDATA[optimization]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=100</guid>
		<description><![CDATA[Collapse literal values
&#160;
  var a : uint = b + &#40; 10024-200 &#41; / 2;//195ms
√ var a : uint = b + 412;//47ms
&#160;
Multiplication is faster than Division
nice explanation of using multiplication for division here
&#160;
  result = num / 4;//382ms
√ result = num * 0.25;//132ms
&#160;
Use Implicit type casting
&#160;
  var a : Point = [...]]]></description>
			<content:encoded><![CDATA[<p id="top" /><strong>Collapse literal values</strong></p>
<pre class="flex">&nbsp;
  <span style="color: #b7cfe7; font-weight: bold;">var</span> a : uint = b + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">10024</span><span style="color: #000000;">-200</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span>;<span style="color: #009900; font-style: italic;">//195ms</span>
√ <span style="color: #b7cfe7; font-weight: bold;">var</span> a : uint = b + <span style="color: #000000;">412</span>;<span style="color: #009900; font-style: italic;">//47ms</span>
&nbsp;</pre>
<p><strong>Multiplication is faster than Division</strong><br />
nice explanation of using multiplication for division <a href="http://gmplib.org/~tege/divcnst-pldi94.pdf">here</a></p>
<pre class="flex">&nbsp;
  result = num / <span style="color: #000000;">4</span>;<span style="color: #009900; font-style: italic;">//382ms</span>
√ result = num * <span style="color: #000000;">0.25</span>;<span style="color: #009900; font-style: italic;">//132ms</span>
&nbsp;</pre>
<p><strong>Use Implicit type casting</strong></p>
<pre class="flex">&nbsp;
  <span style="color: #b7cfe7; font-weight: bold;">var</span> a : Point = points<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> <span style="color: #5b7bff; font-weight: bold;">as</span> Point;<span style="color: #009900; font-style: italic;">//179ms</span>
√ <span style="color: #b7cfe7; font-weight: bold;">var</span> a : Point = points<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span>;<span style="color: #009900; font-style: italic;">//109ms</span>
&nbsp;</pre>
<p><strong>Test variables before methods in statements</strong></p>
<pre class="flex">&nbsp;
  <span style="color: #5b7bff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>method<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#41;</span> &amp;&amp; variable <span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//211ms</span>
√ <span style="color: #5b7bff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span> variable &amp;&amp; method<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//7ms</span>
&nbsp;</pre>
<p><strong>Declare varialbes outside of loops</strong></p>
<pre class="flex">&nbsp;
<span style="color: #5b7bff; font-weight: bold;">for</span><span style="color: #000000;">&#40;</span> <span style="color: #b7cfe7; font-weight: bold;">var</span> i : int = <span style="color: #000000;">0</span>; i &lt; arr.<span style="color: #000000;">length</span>; i ++ <span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//515ms</span>
  <span style="color: #b7cfe7; font-weight: bold;">var</span> i : int = <span style="color: #000000;">0</span>;
  <span style="color: #b7cfe7; font-weight: bold;">var</span> arrLength : int = arr.<span style="color: #000000;">length</span>;
√ <span style="color: #5b7bff; font-weight: bold;">for</span><span style="color: #000000;">&#40;</span> ; i &lt; arr.<span style="color: #000000;">length</span>; i ++ <span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//39ms</span>
&nbsp;</pre>
<p><strong>Thowing erors takes time.</strong></p>
<pre class="flex">&nbsp;
  <span style="color: #5b7bff; font-weight: bold;">try</span><span style="color: #000000;">&#123;</span> isNull.<span style="color: #000000;">x</span> = <span style="color: #000000;">3</span>; <span style="color: #000000;">&#125;</span><span style="color: #5b7bff; font-weight: bold;">catch</span><span style="color: #000000;">&#40;</span> e : Error <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//78ms</span>
√ <span style="color: #5b7bff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span> isNull <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> isNull.<span style="color: #000000;">x</span> = <span style="color: #000000;">3</span>; <span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//0ms</span>
&nbsp;</pre>
<p><strong>Use references instead of full paths or the with operator.</strong></p>
<pre class="flex">&nbsp;
  with<span style="color: #000000;">&#40;</span> sprite.<span style="color: #000000;">graphics</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span> ...<span style="color: #000000;">&#125;</span>;<span style="color: #009900; font-style: italic;">//164ms</span>
√ <span style="color: #b7cfe7; font-weight: bold;">var</span> g : Graphics = sprite.<span style="color: #000000;">graphics</span>;<span style="color: #009900; font-style: italic;">//23ms</span>
&nbsp;</pre>
<p><strong><a href="http://lab.polygonal.de/2008/06/18/using-object-pools/">Use Object Pools</a></strong></p>
<p><strong>Bitwise tricks</strong><br />
<a href="http://http://en.wikipedia.org/wiki/Binary_numeral_system">Bitwise maths on wikipedia</a> <a href="http://en.wikipedia.org/wiki/Boolean_algebra_(logic)">Boolean algebra on wikipedia</a><br />
<a href="http://lab.polygonal.de/2007/05/10/bitwise-gems-fast-integer-math/">polygonal labs bitwise gems</a></p>
<pre class="flex">&nbsp;
val = num | <span style="color: #000000;">0</span>; <span style="color: #009900; font-style: italic;">//Same as Math.floor();</span>
val = num + <span style="color: #000000;">0.5</span> | <span style="color: #000000;">0</span>; <span style="color: #009900; font-style: italic;">// Rounds positive numbers.</span>
<span style="color: #009900; font-style: italic;">//Divide by power of two</span>
val = num &gt;&gt;<span style="color: #000000;">1</span>; <span style="color: #009900; font-style: italic;">//Divide by 2 and floor.</span>
val = num / <span style="color: #000000;">32</span> is the same <span style="color: #5b7bff; font-weight: bold;">as</span> val = num &gt;&gt; <span style="color: #000000;">5</span>
val = <span style="color: #000000;">65535</span> &gt;&gt; <span style="color: #000000;">8</span>; <span style="color: #009900; font-style: italic;">//255</span>
<span style="color: #009900; font-style: italic;">//actual value is 255.996...</span>
<span style="color: #009900; font-style: italic;">//But it is being floored as well</span>
i = <span style="color: #000000;">&#40;</span>x^<span style="color: #000000;">&#40;</span>x&gt;&gt;<span style="color: #000000;">31</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">&#40;</span>x&gt;&gt;<span style="color: #000000;">31</span><span style="color: #000000;">&#41;</span>;<span style="color: #009900; font-style: italic;">//about 2700% faster than Maths.abs();</span>
&nbsp;
<span style="color: #5b7bff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>++count&amp;<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//alternation i need to check this one.</span>
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2009/10/14/code-optimization-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forcing the Browser to crash using ActionScript</title>
		<link>http://www.betadesigns.co.uk/Blog/2009/09/28/forcing-the-browser-to-crash-using-actionscript/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2009/09/28/forcing-the-browser-to-crash-using-actionscript/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 22:59:43 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=84</guid>
		<description><![CDATA[I just discovered this little trick, I'm not sure how useful it is but it works.
Simply create a class that throws an error in the constructor. This will cause the browser to crash and close.
&#160;
&#160;
package
&#123;
   public class BrowserCrasher
   &#123;
      public function BrowserCrasher&#40; &#41;
    [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />I just discovered this little trick, I'm not sure how useful it is but it works.</p>
<p>Simply create a class that throws an error in the constructor. This will cause the browser to crash and close.</p>
<pre class="flex">&nbsp;
&nbsp;
<span style="color: #9e12cf; font-weight: bold;">package</span>
<span style="color: #000000;">&#123;</span>
   <span style="color: #5b7bff; font-weight: bold;">public</span> <span style="color: #9e12cf; font-weight: bold;">class</span> BrowserCrasher
   <span style="color: #000000;">&#123;</span>
      <span style="color: #5b7bff; font-weight: bold;">public</span> <span style="color: #009900; font-weight: bold;">function</span> BrowserCrasher<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#41;</span>
      <span style="color: #000000;">&#123;</span>
         throw <span style="color: #5b7bff; font-weight: bold;">new</span> Error<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'goodbye browser'</span> <span style="color: #000000;">&#41;</span>;
      <span style="color: #000000;">&#125;</span>
   <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2009/09/28/forcing-the-browser-to-crash-using-actionscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enums and static initializers in AS3</title>
		<link>http://www.betadesigns.co.uk/Blog/2009/09/28/enums-and-static-initializers-in-as3/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2009/09/28/enums-and-static-initializers-in-as3/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 21:24:05 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[static initializers]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=80</guid>
		<description><![CDATA[I just came across the idea of static initializers in Java and was wondering if they are available in ActionScript as well.
I found a couple posts on the subject.
post 1
post 2
]]></description>
			<content:encoded><![CDATA[<p id="top" />I just came across the idea of static initializers in Java and was wondering if they are available in ActionScript as well.</p>
<p>I found a couple posts on the subject.</p>
<p><a href="http://www.barneyb.com/barneyblog/2007/11/02/enums-and-actionscripts-static-initializers/" target="_blank">post 1</a></p>
<p><a href="http://life.neophi.com/danielr/2006/12/static_initializers_in_as3_1.html" target="_self">post 2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2009/09/28/enums-and-static-initializers-in-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting snippets to work with FlashBuilder Beta</title>
		<link>http://www.betadesigns.co.uk/Blog/2009/08/19/getting-snippets-to-work-with-flashbuilder-beta/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2009/08/19/getting-snippets-to-work-with-flashbuilder-beta/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 09:40:17 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[cfeclipse]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[flashbuilder]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[theflashblog]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=65</guid>
		<description><![CDATA[Just a quick note here. I use the excellent snippet plugin from Lee Brimlow over at the theFlashBlog so that i don't have to put up with all the cfeclipse icons across the top of my toolbar. But I recently installed a beta version of FlashBuilder and found that when i installed the plugin it [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />Just a quick note here. I use the excellent snippet <a href="http://theflashblog.com/?p=484">plugin</a> from<a href="http://theflashblog.com/?p=484"> Lee Brimlow</a> over at the <a href="http://theflashblog.com/?p=484">theFlashBlog</a> so that i don't have to put up with all the cfeclipse icons across the top of my toolbar. But I recently installed a beta version of FlashBuilder and found that when i installed the plugin it would no longer work. After much searching i found the solution for me was to go into the plugin folder and open the META-INF/MANIFEST.MF file and remove the following two lines from the bottom of the file.</p>
<p> org.eclipse.jface.text;bundle-version="3.4.1",<br />
 com.adobe.flexbuilder.editors.common;bundle-version="3.0.214193"</p>
<p>This re-enabled the plugin for me. Great!</p>
<p>Another little tip with working with snippets and workspaces:<br />
when switching workspaces  you lose all your snippets as they are kept in the workspaces .metadata/.plugins/org.cfeclipse.cfml/snippets<br />
this folder is recreated for each new workspace you create. So what i do is keep a global snippets folder in my main workspace and simply replace the snippets folder in my other workspaces with a simlink to the main one. That way when ever i add a new snippet it is shared across all my workspaces.</p>
<p>just a little side note:: if you don't know how to show hidden files in mac osx. type the following into the terminal and then restart finder.</p>
<pre>
defaults write com.apple.Finder AppleShowAllFIles TRUE
</pre>
<p>To turn it off set it to false. You also need to restart Finder for it to take effect.<br />
Also if you don't know how to create the simlink you simple go into the terminal, navigate to your workspace then .metadata>.plugins>org.cfeclipse.cfml delete the snippets folder that is in there and then type<br />
ln -s PATH TO YOUR WORKSPACE WHERE YOU KEEP YOUR MAIN SNIPPET FOLDER/snippets Snippets</p>
<p>This should then put a simlink inside your workspace and you can then share your snippets across all your workspaces instead of having to copy them into each.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2009/08/19/getting-snippets-to-work-with-flashbuilder-beta/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IMXMLObject for non visual components</title>
		<link>http://www.betadesigns.co.uk/Blog/2009/08/18/imxmlobject-for-non-visual-components/</link>
		<comments>http://www.betadesigns.co.uk/Blog/2009/08/18/imxmlobject-for-non-visual-components/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 10:34:26 +0000</pubDate>
		<dc:creator>Anthony</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[component development]]></category>
		<category><![CDATA[interfaces]]></category>
		<category><![CDATA[non-visual components]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[visual components]]></category>

		<guid isPermaLink="false">http://www.betadesigns.co.uk/Blog/?p=61</guid>
		<description><![CDATA[I have been using Flex for a couple of years now and i still find new and interesting framework items. In comes IMXMLObject. Up until recently whenever i wanted to place a non visual component into mxml i was extending UIComponent to allow me to place these items in MXML, however among other things this [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />I have been using Flex for a couple of years now and i still find new and interesting framework items. In comes IMXMLObject. Up until recently whenever i wanted to place a non visual component into mxml i was extending UIComponent to allow me to place these items in MXML, however among other things this meant that they would be included in the layout and come with a high footprint.<br />
The solution seems to be to implement the IMXMLObject interface this will allow you to place non visual components into your mxml code without having to worry about layout or an unnecessary memory footprint. </p>
<p>usefull links<br />
<a href="http://livedocs.adobe.com/flex/3/langref/mx/core/IMXMLObject.html">livedocs</a><br />
<a href="http://brianjoseph31.typepad.com/smashedapples/2008/02/who-wants-to-se.html">smashedapples</a><br />
<a href="http://www.techper.net/2008/07/23/non-visual-component-initialization-in-mxml-with-imxmlobject/">techper</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.betadesigns.co.uk/Blog/2009/08/18/imxmlobject-for-non-visual-components/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
