<?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>Randomize Everything</title>
	<atom:link href="http://www.bartclaessens.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bartclaessens.com</link>
	<description>And create the perfect world</description>
	<lastBuildDate>Sat, 17 Jul 2010 11:57:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Completely Uninstall XCode And Developer Tools</title>
		<link>http://www.bartclaessens.com/2010/07/completely-uninstall-xcode-and-developer-tools/</link>
		<comments>http://www.bartclaessens.com/2010/07/completely-uninstall-xcode-and-developer-tools/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 11:57:07 +0000</pubDate>
		<dc:creator>Bart Claessens</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Platforms]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[delete xcode]]></category>
		<category><![CDATA[reinstall xcode]]></category>
		<category><![CDATA[remove xcode]]></category>
		<category><![CDATA[uninstall xcode]]></category>

		<guid isPermaLink="false">http://www.bartclaessens.com/?p=234</guid>
		<description><![CDATA[If you&#8217;re running into troubles with your XCode installation or Developer Tools and like to reinstall the whole thing, you should enter the following command in your Terminal application to uninstall the whole developer package: sudo /Developer/Library/uninstall-devtools –mode=all]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running into troubles with your XCode installation or Developer Tools and like to reinstall the whole thing, you should enter the following command in your Terminal application to uninstall the whole developer package:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>Developer<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>uninstall-devtools –<span style="color: #007800;">mode</span>=all</pre></div></div>

<div class="shr-publisher-234"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bartclaessens.com/2010/07/completely-uninstall-xcode-and-developer-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encoding HTML entities In Objective C</title>
		<link>http://www.bartclaessens.com/2010/06/encoding-html-entities-in-objective-c/</link>
		<comments>http://www.bartclaessens.com/2010/06/encoding-html-entities-in-objective-c/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 07:37:12 +0000</pubDate>
		<dc:creator>Bart Claessens</dc:creator>
				<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[convert french symbols]]></category>
		<category><![CDATA[convert html]]></category>
		<category><![CDATA[convert html characters]]></category>
		<category><![CDATA[encode french characters]]></category>
		<category><![CDATA[encode html entities]]></category>
		<category><![CDATA[objc]]></category>
		<category><![CDATA[objective c]]></category>
		<category><![CDATA[special html characters]]></category>

		<guid isPermaLink="false">http://www.bartclaessens.com/?p=230</guid>
		<description><![CDATA[When sending data to a backend server you sometimes need to encode special characters to HTML entities. To encode those characters in a string use the method: stringByAddingPercentEscapesUsingEncoding. Consider the following example to make it a bit more clear: NSString *urlString = &#91;NSString stringWithFormat:@&#34;%@%@&#34;, @&#34;http://www.this-is-a-url.com/accept.php?identifier=&#34;, uniqueDeviceIdentifier&#93;; urlString = &#91;urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding&#93;; NSLog&#40;@&#34;Upload to server: %@&#34;, urlString&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>When sending data to a backend server you sometimes need to encode special characters to HTML entities. To encode those characters in a string use the method: <code>stringByAddingPercentEscapesUsingEncoding</code>. Consider the following example to make it a bit more clear:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span>urlString <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #400080;">NSString</span> stringWithFormat<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;%@%@&quot;</span>, <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;http://www.this-is-a-url.com/accept.php?identifier=&quot;</span>, uniqueDeviceIdentifier<span style="color: #002200;">&#93;</span>;
urlString <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>urlString stringByAddingPercentEscapesUsingEncoding<span style="color: #002200;">:</span>NSUTF8StringEncoding<span style="color: #002200;">&#93;</span>;
NSLog<span style="color: #002200;">&#40;</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;Upload to server: %@&quot;</span>, urlString<span style="color: #002200;">&#41;</span>;</pre></div></div>

<p>Short note: the first line of the example shows you how to concatenate two strings.</p>
<div class="shr-publisher-230"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bartclaessens.com/2010/06/encoding-html-entities-in-objective-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Displaying Custom Fonts In Objective-C (iPhone SDK)</title>
		<link>http://www.bartclaessens.com/2010/06/displaying-custom-fonts-in-objective-c-iphone-sdk/</link>
		<comments>http://www.bartclaessens.com/2010/06/displaying-custom-fonts-in-objective-c-iphone-sdk/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 13:13:55 +0000</pubDate>
		<dc:creator>Bart Claessens</dc:creator>
				<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[custom font]]></category>
		<category><![CDATA[embed font]]></category>
		<category><![CDATA[include font]]></category>
		<category><![CDATA[iphone custom fonts]]></category>
		<category><![CDATA[UILabel font embed]]></category>

		<guid isPermaLink="false">http://www.bartclaessens.com/?p=223</guid>
		<description><![CDATA[Coming from the Flash Platform I&#8217;m used to do a lot of font embedding in my projects. A few week ago I looked into this topic when programming an iPad application which needed a complete design makeover with custom fonts to spice it up a bit. So how do you go about including custom fonts [...]]]></description>
			<content:encoded><![CDATA[<p>Coming from the Flash Platform I&#8217;m used to do a lot of font embedding in my projects. A few week ago I looked into this topic when programming an iPad application which needed a complete design makeover with custom fonts to spice it up a bit.</p>
<p>So how do you go about including custom fonts in an iPhone/iPad project? Well, it&#8217;s not that hard if you&#8217;re having a little bit of objective-c experience. You should download the <a href="http://github.com/zynga/FontLabel" target="_blank">FontLabel library</a>, add it to your project and start creating FontLabel instances in code. I sense you feel the need for an example, so here it is:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;">FontLabel <span style="color: #002200;">*</span>questionLabel <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>FontLabel alloc<span style="color: #002200;">&#93;</span> initWithFrame<span style="color: #002200;">:</span>CGRectMake<span style="color: #002200;">&#40;</span><span style="color: #2400d9;">60</span>, <span style="color: #2400d9;">115</span>, <span style="color: #2400d9;">900</span>, <span style="color: #2400d9;">130</span><span style="color: #002200;">&#41;</span> fontName<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;DINPro-Medium&quot;</span> pointSize<span style="color: #002200;">:</span>30.0f<span style="color: #002200;">&#93;</span>;
questionLabel.textColor <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>UIColor whiteColor<span style="color: #002200;">&#93;</span>;
questionLabel.textAlignment <span style="color: #002200;">=</span> UITextAlignmentCenter;
questionLabel.lineBreakMode <span style="color: #002200;">=</span> UILineBreakModeTailTruncation;
questionLabel.backgroundColor <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>UIColor colorWithRed<span style="color: #002200;">:</span><span style="color: #2400d9;">0.0</span> green<span style="color: #002200;">:</span><span style="color: #2400d9;">0.0</span> blue<span style="color: #002200;">:</span><span style="color: #2400d9;">0.0</span> alpha<span style="color: #002200;">:</span><span style="color: #2400d9;">0.0</span><span style="color: #002200;">&#93;</span>;
questionLabel.numberOfLines <span style="color: #002200;">=</span> <span style="color: #2400d9;">0</span>;
<span style="color: #002200;">&#91;</span>self.view addSubview<span style="color: #002200;">:</span>questionLabel<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#91;</span>questionLabel release<span style="color: #002200;">&#93;</span>;</pre></div></div>

<p>&#8220;DINPro-Medium&#8221; is a TrueType font included in my resources bundle. Please do mind that FontLabel currently only accepts TrueType fonts, so you might want to convert some of those non-ttf fonts to ttf. A good online font converter can be found here: <a href="http://onlinefontconverter.com/" target="_blank">http://onlinefontconverter.com/</a></p>
<div class="shr-publisher-223"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bartclaessens.com/2010/06/displaying-custom-fonts-in-objective-c-iphone-sdk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hit Testing A Non-Transparent Area In Objective C</title>
		<link>http://www.bartclaessens.com/2010/06/hit-testing-a-non-transparent-area-in-objective-c/</link>
		<comments>http://www.bartclaessens.com/2010/06/hit-testing-a-non-transparent-area-in-objective-c/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 18:33:07 +0000</pubDate>
		<dc:creator>Bart Claessens</dc:creator>
				<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[collision detection]]></category>
		<category><![CDATA[colored area]]></category>
		<category><![CDATA[hit test]]></category>
		<category><![CDATA[hittesting]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[touch]]></category>
		<category><![CDATA[transparent]]></category>

		<guid isPermaLink="false">http://www.bartclaessens.com/?p=219</guid>
		<description><![CDATA[Coding hit tests has always been a hassle when transparent .png files come into the game. That&#8217;s why Jeff Lamarche has extended the standard UIButton and added the hit testing of transparent .png buttons. This new class will only return a valid hit when you are touching a non-transparent part of the .png image. More [...]]]></description>
			<content:encoded><![CDATA[<p>Coding hit tests has always been a hassle when transparent .png files come into the game. That&#8217;s why Jeff Lamarche has extended the standard UIButton and added the hit testing of transparent .png buttons. This new class will only return a valid hit when you are touching a non-transparent part of the .png image.</p>
<p><a href="http://iphonedevelopment.blogspot.com/2010/03/improved-irregular-shape-uibutton.html" target="_blank">More information and the downloadable source can be found here.</a></p>
<p>Some example code to get you going:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>viewDidLoad
<span style="color: #002200;">&#123;</span>
	UIImage <span style="color: #002200;">*</span>image <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>UIImage imageNamed<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;image-in-resources.png&quot;</span><span style="color: #002200;">&#93;</span>;
	IrregularShapedButton <span style="color: #002200;">*</span>irrButton <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>IrregularShapedButton buttonWithType<span style="color: #002200;">:</span>UIButtonTypeCustom<span style="color: #002200;">&#93;</span> retain<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>irrButton setImage<span style="color: #002200;">:</span>image forState<span style="color: #002200;">:</span>UIControlStateNormal<span style="color: #002200;">&#93;</span>;
	irrButton.frame <span style="color: #002200;">=</span> CGRectMake<span style="color: #002200;">&#40;</span><span style="color: #2400d9;">0</span>, <span style="color: #2400d9;">0</span>, image.size.width, image.size.height<span style="color: #002200;">&#41;</span>;
&nbsp;
	<span style="color: #002200;">&#91;</span>self.view addSubview<span style="color: #002200;">:</span>irrButton<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>super viewDidLoad<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span>IBAction<span style="color: #002200;">&#41;</span>buttonClick<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><span style="color: #a61390;">id</span><span style="color: #002200;">&#41;</span>sender
<span style="color: #002200;">&#123;</span>
    NSLog<span style="color: #002200;">&#40;</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;Clicked:%@&quot;</span>, sender<span style="color: #002200;">&#41;</span>;
<span style="color: #002200;">&#125;</span></pre></div></div>

<div class="shr-publisher-219"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bartclaessens.com/2010/06/hit-testing-a-non-transparent-area-in-objective-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automator SVN-delete and deploy workflow</title>
		<link>http://www.bartclaessens.com/2010/04/automator-svn-delete-and-deploy-workflow/</link>
		<comments>http://www.bartclaessens.com/2010/04/automator-svn-delete-and-deploy-workflow/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 09:46:25 +0000</pubDate>
		<dc:creator>Bart Claessens</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Versioning]]></category>
		<category><![CDATA[automatic process]]></category>
		<category><![CDATA[automator]]></category>
		<category><![CDATA[remove .svn folders]]></category>
		<category><![CDATA[version control]]></category>

		<guid isPermaLink="false">http://www.bartclaessens.com/?p=211</guid>
		<description><![CDATA[Almost all of my projects are placed under svn version control, a great way to manage different project versions. But when the time is there to put everything online I have to clear all auto-created .svn files and folders. This doesn&#8217;t only save space but it&#8217;s also a more secure way to deploy files. A [...]]]></description>
			<content:encoded><![CDATA[<p>Almost all of my projects are placed under <a href="http://subversion.apache.org/" target="_blank">svn version control</a>, a great way to manage different project versions. But when the time is there to put everything online I have to clear all auto-created .svn files and folders. This doesn&#8217;t only save space but it&#8217;s also a more secure way to deploy files.<br />
A few weeks back I created an automator workflow to do all this stuff automagically and today is the time I share this with you developers out there.</p>
<p>What it actually does:<br />
- It prompts you with the folder you&#8217;d like to export<br />
- It takes a copy of the folder and pastes it onto the desktop<br />
- It removes all the .svn files and folders<br />
- It shows the newly exported folder in a finder window<br />
- Your original files won&#8217;t be harmed</p>
<p>You can download the compiled automator script <a href="http://www.bartclaessens.com/wp-content/uploads/files/deploy_app.zip">here</a>.<br />
If you&#8217;d like to change the workflow to fit your own needs (i.e.: you can open your favorite FTP client after the process) then download the automator workflow <a href="http://www.bartclaessens.com/wp-content/uploads/files/deploy_workflow.zip">here</a>.</p>
<p>Just a little sidenote: you can also export your project from your subversion client like <a href="http://www.versionsapp.com/"  target="_blank">Versions</a> or <a href="http://www.zennaware.com/cornerstone/index.php"  target="_blank">Cornerstone</a>.</p>
<div class="shr-publisher-211"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bartclaessens.com/2010/04/automator-svn-delete-and-deploy-workflow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quicktip #6: Fixing the cut off character on embedded-font-textfields</title>
		<link>http://www.bartclaessens.com/2010/01/quicktip-6-fixing-the-cut-off-character-on-embedded-font-textfields/</link>
		<comments>http://www.bartclaessens.com/2010/01/quicktip-6-fixing-the-cut-off-character-on-embedded-font-textfields/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 21:50:42 +0000</pubDate>
		<dc:creator>Bart Claessens</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[QuickTips]]></category>
		<category><![CDATA[failing width calculation]]></category>
		<category><![CDATA[font embedding]]></category>
		<category><![CDATA[quicktip]]></category>
		<category><![CDATA[textfield autosize]]></category>

		<guid isPermaLink="false">http://www.bartclaessens.com/?p=191</guid>
		<description><![CDATA[As we all know, Flash has these crazy bugs nobody ever understands. One of those is the fact that the last character of a dynamic textfield (which has been set to &#8220;AutoSize&#8221;) gets cut off when you&#8217;re using an embedded font. Up till now I still don&#8217;t understand what kind of situation leads to this [...]]]></description>
			<content:encoded><![CDATA[<p>As we all know, Flash has these crazy bugs nobody ever understands. One of those is the fact that the last character of a dynamic textfield (which has been set to &#8220;AutoSize&#8221;) gets cut off when you&#8217;re using an embedded font. Up till now I still don&#8217;t understand what kind of situation leads to this exceptional behavior. The only thing I can say is that Flash Player fails to determine the correct text length which screws up the textfield width to be shorter than it has to be.</p>
<p>Example:<br />
<div id="attachment_193" class="wp-caption alignnone" style="width: 261px"><a href="http://www.bartclaessens.com/wp-content/uploads/2010/01/blurredchars.jpg" rel="lightbox[191]"><img src="http://www.bartclaessens.com/wp-content/uploads/2010/01/blurredchars.jpg" alt="Blurred/Cut Off Characters" title="Blurred Characters" width="251" height="53" class="size-full wp-image-193" /></a><p class="wp-caption-text">Blurred/Cut Off Characters</p></div><br />
<span id="more-191"></span><br />
<br/><br />
A quicktip post wouldn&#8217;t be a quicktip post without a solution. So, here&#8217;s one of the tricks you might give a go: increase the rightMargin property of the TextField to a small value like 1 or 2.</p>

<div class="wp_syntax"><div class="code"><pre class="as3" style="font-family:monospace;">var textFormat:TextFormat = new TextFormat();
textFormat.rightMargin = 1;
&nbsp;
textField.antiAliasType = AntiAliasType.ADVANCED;
textField.gridFitType = GridFitType.SUBPIXEL;
textField.embedFonts = true;
textField.autoSize = TextFieldAutoSize.CENTER;
textField.defaultTextFormat = textFormat;
textField.setTextFormat(textFormat);</pre></div></div>

<p>Hope this helps!</p>
<div class="shr-publisher-191"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bartclaessens.com/2010/01/quicktip-6-fixing-the-cut-off-character-on-embedded-font-textfields/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Quicktip #5: int is faster than uint</title>
		<link>http://www.bartclaessens.com/2009/06/quicktip-5-int-is-faster-than-uint/</link>
		<comments>http://www.bartclaessens.com/2009/06/quicktip-5-int-is-faster-than-uint/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 08:35:59 +0000</pubDate>
		<dc:creator>Bart Claessens</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[QuickTips]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[actionscript performance]]></category>
		<category><![CDATA[int]]></category>
		<category><![CDATA[Number]]></category>
		<category><![CDATA[performance gains]]></category>
		<category><![CDATA[uint]]></category>

		<guid isPermaLink="false">http://www.bartclaessens.com/?p=177</guid>
		<description><![CDATA[The past few weeks I&#8217;ve been programming a scheduling component in Flash which has to be extremely performant. Every small adaption in my code that could help with limiting the processing needs is a good adaption. Today I stumbled upon a post of Grant Skinner in which he explains that using a uint is slower [...]]]></description>
			<content:encoded><![CDATA[<p>The past few weeks I&#8217;ve been programming a scheduling component in Flash which has to be extremely performant. Every small adaption in my code that could help with limiting the processing needs is a good adaption. Today I stumbled upon a post of Grant Skinner in which he explains that using a uint is slower than a normal int. The uint&#8217;s can get five times slower than using a normal int.</p>
<p><span id="more-177"></span></p>
<p>So, what about the Number type? Well, I thought the Number type was a very slow type compared to the new int and uint but that also didn&#8217;t seem to be right!</p>
<blockquote><p>
Sho just posted a really interested article on why he won&#8217;t be using the int data type very frequently in ActionScript 3. Up until reading it, I had believed that as in other languages, there were large performance benefits to using ints and uints appropriately in AS3. Turns out that isn&#8217;t the case.</p>
<p>I did some quick testing on this, which confirm Sho&#8217;s assertion that int is only slightly faster than Number in ideal circumstances, but the results from uint were much more surprising.
</p></blockquote>
<p>Read the complete post here: <a href="http://www.gskinner.com/blog/archives/2006/06/types_in_as3_in.html">gskinner.com</a></p>
<div class="shr-publisher-177"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bartclaessens.com/2009/06/quicktip-5-int-is-faster-than-uint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Certified Flash CS3 Developer</title>
		<link>http://www.bartclaessens.com/2009/01/adobe-certified-developer-flash-cs3-developer/</link>
		<comments>http://www.bartclaessens.com/2009/01/adobe-certified-developer-flash-cs3-developer/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 19:26:44 +0000</pubDate>
		<dc:creator>Bart Claessens</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[CS3]]></category>
		<category><![CDATA[exam]]></category>

		<guid isPermaLink="false">http://www.bartclaessens.com/?p=112</guid>
		<description><![CDATA[In times of crisis there is little few work than other busy-o-noo-we-have-to-reach-our-deadline-developer-days. So, there are a few useful things we can do: invest our time into new technologies or play with things (with the technology we daily use) we didn&#8217;t play with before. Mostly because we didn&#8217;t have enough time back then. The second most [...]]]></description>
			<content:encoded><![CDATA[<p>In times of crisis there is little few work than other busy-o-noo-we-have-to-reach-our-deadline-developer-days.</p>
<p>So, there are a few useful things we can do: invest our time into new technologies or play with things (with the technology we daily use) we didn&#8217;t play with before. Mostly because we didn&#8217;t have enough time back then. The second most useful thing we can do is getting a certificate for the technologies we use every day.</p>
<p><span id="more-112"></span></p>
<p>That&#8217;s why I got myself certified for Flash CS3. The exam was made up out of 57 questions. I have to admit that the exam wasn&#8217;t a peace of cake at all, I thought it would be but some of the questions I had to answer were very complicated and about things I seldom use, like &#8216;accessibility&#8217; in Flash.<br />
I think I underestimated the exam because I have been developing Flash ActionScript 2.0 and 3.0 for about two to two and a half years. Now, this didn&#8217;t seem enough because there were a lot of questions about the Flash IDE, embedding video&#8217;s, exporting to correct formats, using the correct symbols and there specific use as Adobe intended them.</p>
<p>So, if you are considering getting a Flash CS3 certificate yourself: consider looking around for a good book with a detailed description of the complete Flash IDE and a few basics of the ActionScript Language (both ActionScript 2.0 and 3.0).</p>
<div class="shr-publisher-112"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bartclaessens.com/2009/01/adobe-certified-developer-flash-cs3-developer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quicktip #1: Casting to Number()</title>
		<link>http://www.bartclaessens.com/2008/11/quicktip-1-casting-to-number/</link>
		<comments>http://www.bartclaessens.com/2008/11/quicktip-1-casting-to-number/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 09:52:45 +0000</pubDate>
		<dc:creator>Bart Claessens</dc:creator>
				<category><![CDATA[QuickTips]]></category>
		<category><![CDATA[casting]]></category>
		<category><![CDATA[int]]></category>
		<category><![CDATA[not correct]]></category>
		<category><![CDATA[Number]]></category>
		<category><![CDATA[uint]]></category>
		<category><![CDATA[zero]]></category>

		<guid isPermaLink="false">http://www.bartclaessens.com/?p=80</guid>
		<description><![CDATA[Did you know that casting a String to a Number using the &#8216;as&#8217; operator returns 0 instead of the correct number? Use the Number() constructor to cast it correctly. The same applies for &#8216;int&#8217; and &#8216;uint&#8217;. var myNumber:String = '15'; trace&#40;&#34;My Number: &#34; + myNumber&#41;; &#160; var castedNumber:Number = myNumber as Number; trace&#40;&#34;My Number (casted [...]]]></description>
			<content:encoded><![CDATA[<p>Did you know that casting a String to a Number using the &#8216;as&#8217; operator returns 0 instead of the correct number? Use the Number() constructor to cast it correctly. The same applies for &#8216;int&#8217; and &#8216;uint&#8217;.</p>
<p><span id="more-80"></span></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> myNumber<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #990000;">'15'</span>;
<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;My Number: &quot;</span> <span style="color: #000000; font-weight: bold;">+</span> myNumber<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> castedNumber<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = myNumber <span style="color: #0033ff; font-weight: bold;">as</span> <span style="color: #004993;">Number</span>;
<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;My Number (casted with 'as' operator): &quot;</span> <span style="color: #000000; font-weight: bold;">+</span> castedNumber<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> betterCastedNumber<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">Number</span><span style="color: #000000;">&#40;</span>myNumber<span style="color: #000000;">&#41;</span>;
<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;My Number (casted using Number() constructor): &quot;</span> <span style="color: #000000; font-weight: bold;">+</span> betterCastedNumber<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #009900;">// Output:</span>
<span style="color: #009900;">// My Number: 15</span>
<span style="color: #009900;">// My Number (casted with 'as' operator): 0</span>
<span style="color: #009900;">// My Number (casted using Number() constructor): 15</span></pre></div></div>

<div class="shr-publisher-80"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bartclaessens.com/2008/11/quicktip-1-casting-to-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code snippet: Trimming texts in AS2</title>
		<link>http://www.bartclaessens.com/2008/11/code-snippet-trimming-texts-in-as2/</link>
		<comments>http://www.bartclaessens.com/2008/11/code-snippet-trimming-texts-in-as2/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 22:22:28 +0000</pubDate>
		<dc:creator>Bart Claessens</dc:creator>
				<category><![CDATA[ActionScript 2]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[ascii]]></category>
		<category><![CDATA[carriage return]]></category>
		<category><![CDATA[newline]]></category>
		<category><![CDATA[remove characters]]></category>
		<category><![CDATA[trim]]></category>

		<guid isPermaLink="false">http://www.bartclaessens.com/?p=63</guid>
		<description><![CDATA[From time to time some of us still have to code in oldskool ActionScript 2. A few days ago a colleague asked me for a function for trimming &#8216;new line&#8217; (\n), &#8216;carriage return&#8217; (\r) characters, spaces, &#8230; So I ended up searching my archives for a code snippet to archive this functionality and look what I found: This [...]]]></description>
			<content:encoded><![CDATA[<p>From time to time some of us still have to code in oldskool ActionScript 2. A few days ago a colleague asked me for a function for trimming &#8216;new line&#8217; (\n), &#8216;carriage return&#8217; (\r) characters, spaces, &#8230;<br />
So I ended up searching my archives for a code snippet to archive this functionality and look what I found:</p>
<p><span id="more-63"></span></p>
<p>This code takes out the characters that are defined in the <code>character_array</code> variable:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// remove \r , \n , &amp;amp; from string</span>
<span style="color: #000000; font-weight: bold;">function</span> trimTextChars<span style="color: #66cc66;">&#40;</span>text_str<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">String</span>
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">var</span> character_array:<span style="color: #0066CC;">Array</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">chr</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">13</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #0066CC;">chr</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #0066CC;">chr</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">38</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #000000; font-weight: bold;">var</span> inputstring:<span style="color: #0066CC;">String</span> = text_str;
    <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span>i=<span style="color: #cc66cc;">0</span> ; i <span style="color: #66cc66;">&lt;</span> character_array.<span style="color: #0066CC;">length</span> ; i++<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">var</span> temp_array = inputstring.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span>character_array<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
        <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span>j=<span style="color: #cc66cc;">0</span> ; j <span style="color: #66cc66;">&lt;</span> temp_array.<span style="color: #0066CC;">length</span> ; j++<span style="color: #66cc66;">&#41;</span> temp_array<span style="color: #66cc66;">&#91;</span>j<span style="color: #66cc66;">&#93;</span> = trim<span style="color: #66cc66;">&#40;</span>temp_array<span style="color: #66cc66;">&#91;</span>j<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
        inputstring = temp_array.<span style="color: #0066CC;">join</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot; &quot;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
&nbsp;
    <span style="color: #b1b100;">return</span> inputstring;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>This code removes leading and trailing spaces from a given string:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Trim leading and trailing spaces from string</span>
<span style="color: #000000; font-weight: bold;">function</span> trim<span style="color: #66cc66;">&#40;</span>txt_str<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">String</span>
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #b1b100;">while</span> <span style="color: #66cc66;">&#40;</span>txt_str.<span style="color: #0066CC;">charAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> == <span style="color: #ff0000;">&quot; &quot;</span><span style="color: #66cc66;">&#41;</span> txt_str = txt_str.<span style="color: #0066CC;">substring</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>, txt_str.<span style="color: #0066CC;">length</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #b1b100;">while</span> <span style="color: #66cc66;">&#40;</span>txt_str.<span style="color: #0066CC;">charAt</span><span style="color: #66cc66;">&#40;</span>txt_str.<span style="color: #006600;">length</span>-<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> == <span style="color: #ff0000;">&quot; &quot;</span><span style="color: #66cc66;">&#41;</span> txt_str = txt_str.<span style="color: #0066CC;">substring</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, txt_str.<span style="color: #006600;">length</span>-<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
    <span style="color: #b1b100;">return</span> txt_str;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Enjoy!</p>
<div class="shr-publisher-63"></div>]]></content:encoded>
			<wfw:commentRss>http://www.bartclaessens.com/2008/11/code-snippet-trimming-texts-in-as2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

