<?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>creacog &#187; ActionScript</title>
	<atom:link href="http://blog.creacog.co.uk/category/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.creacog.co.uk</link>
	<description></description>
	<lastBuildDate>Thu, 19 Jan 2012 16:43:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Which width? (AIR on devices)</title>
		<link>http://blog.creacog.co.uk/2011/07/19/which-width-air-on-devices/</link>
		<comments>http://blog.creacog.co.uk/2011/07/19/which-width-air-on-devices/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 14:45:42 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[HTC Desire]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=548</guid>
		<description><![CDATA[Comparing various ActionScript height and width properties upon initialisation on HTC Desire and the PlayBook simulator]]></description>
			<content:encoded><![CDATA[<p>Within the Flash APIs is there there are many similarly named properties which provide subtly different results based on their spec and the state of the application. Width and height are such properties.</p>
<p>Having just read of Mike Jones&#8217; recent article: <a title="My 10 Tips When Developing For Multiple Devices" href="http://blog.flashgen.com/2011/07/16/my-10-tips-when-developing-for-multiple-devices/" target="_blank">10 Tips When Developing For Multiple Devices</a>, and tip #1: <a title="Check screen dimension on initialization" href="http://blog.flashgen.com/2011/07/16/my-10-tips-when-developing-for-multiple-devices/#screen" target="_blank">Check screen dimension on initialisation</a>, it includes a couple of lines of code to get the landscape height and width of the device screen using a boolean expression to determine the longest dimension. For me this begs the question, why can&#8217;t I simply get the right values directly from the API? Especially if my app.xml properties state the app should only display landscape, full screen.</p>
<p>The properties examined here:</p>
<ul>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#width" target="as3api">stage.width</a></li>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#height" target="as3api">stage.height</a></li>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#stageWidth" target="as3api">stage.stageWidth</a></li>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#stageHeight" target="as3api">stage.stageHeight</a></li>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#fullScreenWidth" target="as3api">stage.fullScreenWidth</a></li>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#fullScreenWidth" target="as3api">stage.fullScreenHeight</a></li>
<li><a title="ActionScript® 3.0 Reference for the Adobe® Flash® Platform" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#orientation" target="as3api">stage.orientation</a></li>
</ul>
<p>Although accurately described in the reference, it isn&#8217;t necessarily easy to visualise the differences in behaviour for these properties from the documentation alone. So herewith, a simple <a title="Download HelloWidthHeight Flash builder project zip file" href="http://blog.creacog.co.uk/wp-content/uploads/2011/07/HelloWidthHeight.zip">HelloWidthHeight</a> app to trace out the values upon initialisation. Included in that app is a class implementing logic based on Mike&#8217;s as static methods. The results of debug sessions executed on my HTC Desire are detailed for comparison in the table below.</p>
<p>Key app.xml &lt;initialWindow&gt; properties used were:</p>
<ul>
<li>&lt;visible&gt;true&lt;/visible&gt;</li>
<li>&lt;aspectRatio&gt;landscape&lt;/aspectRatio&gt;</li>
<li>&lt;autoOrients&gt;false&lt;/autoOrients&gt;</li>
<li>&lt;fullScreen&gt;true&lt;/fullScreen&gt;</li>
</ul>
<table>
<tbody>
<tr>
<td></td>
<th>A</th>
<th>B</th>
<th>C</th>
<th>D</th>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.orientation</th>
<td>default</td>
<td>rotatedRight</td>
<td>rotatedRight</td>
<td>rotatedRight</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.width</th>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.height</th>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.stageWidth</th>
<td>480</td>
<td>800</td>
<td>800</td>
<td>800</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.stageHeight</th>
<td>800</td>
<td>480</td>
<td>480</td>
<td>480</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.fullScreenWidth</th>
<td>480</td>
<td>480</td>
<td>800</td>
<td>480</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.fullScreenHeight</th>
<td>800</td>
<td>800</td>
<td>480</td>
<td>800</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.landscapeScreenWidth</th>
<td>800</td>
<td>800</td>
<td>800</td>
<td>800</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.landscapeScreenHeight</th>
<td>480</td>
<td>480</td>
<td>480</td>
<td>480</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.portraitScreenWidth</th>
<td>480</td>
<td>480</td>
<td>480</td>
<td>480</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.portraitScreenHeight</th>
<td>800</td>
<td>800</td>
<td>800</td>
<td>800</td>
</tr>
</tbody>
</table>
<ol type="A">
<li>Screen inactive, phone held in any orientation</li>
<li>Screen active, phone lying flat on the desk</li>
<li>Screen active, phone held landscape, mic to the right (this is the intended orientation for the app)</li>
<li>Screen active, phone held portrait, mic to the bottom</li>
</ol>
<p>In conclusion, unless the application is only ever launched while the screen is active (though that would be the norm), the safe way of determining an oriented width and height is to use a boolean expression along with the fullScreenWidth and fullScreenHeight properties.</p>
<p><strong>UPDATE (20-July-2011)</strong>: The following table runs the same code in the BlackBerry PlayBook Simulator:</p>
<table>
<tbody>
<tr>
<td></td>
<th>A</th>
<th>B</th>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.orientation</th>
<td>default</td>
<td>default</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.width</th>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.height</th>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.stageWidth</th>
<td>1024</td>
<td>1024</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.stageHeight</th>
<td>600</td>
<td>600</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.fullScreenWidth</th>
<td>1024</td>
<td>1024</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">stage.fullScreenHeight</th>
<td>600</td>
<td>600</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.landscapeScreenWidth</th>
<td>1024</td>
<td>1024</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.landscapeScreenHeight</th>
<td>600</td>
<td>600</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.portraitScreenWidth</th>
<td>600</td>
<td>600</td>
</tr>
<tr>
<th style="text-align: left; text-transform: none;">Oriented.portraitScreenHeight</th>
<td>1024</td>
<td>1024</td>
</tr>
</tbody>
</table>
<ol type="A">
<li>Simulator initially landscape</li>
<li>Simulator initially portrait</li>
</ol>
<p>Note: Behaviour is slightly different on the PlayBook simulator in that the orientation of the application is set before the initialisation code runs. Therefore unlike on the HTC Desire, fullScreenWidth and fullScreenHeight are correctly returned as the orientation of the application expects.</p>
<p>If anyone else cares to run the code, I&#8217;d be interested to hear how variable other devices are in their results, or if this is showing a bug when run on HTC Desire. Running AIR 2.7 here.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2011/07/19/which-width-air-on-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Editor bug in Mac OS X 10.6.1</title>
		<link>http://blog.creacog.co.uk/2009/10/31/editor-bug-in-10-6-1/</link>
		<comments>http://blog.creacog.co.uk/2009/10/31/editor-bug-in-10-6-1/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 14:23:03 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=298</guid>
		<description><![CDATA[UPDATE 22 June 2010 : Further to my even earlier bug report (FB-9398) FlashApe has posted a work around by changing a Snow Leopard system preference. UPDATE 10-Dec-2009: I&#8217;m pretty convinced now that this is an editor bug, not a Mac OS X bug. Essentially the editors are using default OS behaviour which I think is [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE 22 June 2010</strong> : Further to my even earlier bug report (<a title="variable:type treated as a single word when navigating the cursor" href="http://bugs.adobe.com/jira/browse/FB-9398" target="_blank">FB-9398</a>) <a title="Mac eclipse word boundary issue fix" href="http://www.visible-form.com/blog/mac-eclipse-word-boundary-issue-fix/" target="_blank">FlashApe has posted a work around</a> by changing a Snow Leopard system preference.</p>
<p><strong>UPDATE 10-Dec-2009</strong>: I&#8217;m pretty convinced now that this is an editor bug, not a Mac OS X bug. Essentially the editors are using default OS behaviour which I think is tailored for natural language editing rather than programme-code editing. Original post follows&#8230;</p>
<p>I&#8217;m currently finding in <strong>some</strong> applications that &#8220;word1.word2.word3&#8243; is being treated as a single word as far as the Option-Left Arrow and Option-Right Arrow is concerned on my Mac. This keyboard shortcut should hop word by word. But currently hops from one end to the other. Not an issue for most users, but pretty serious for a programmer working with dot-notation syntax.</p>
<p>I first experienced this working with ActionScript in Adobe&#8217;s Flash Builder Beta 2 and logged <a title="can '.' and ':' be recognised as word-breaks when using cursor key combinations" href="http://bugs.adobe.com/jira/browse/FB-23660" target="_blank">a bug report</a>, but further investigation reveals that some unrelated applications show the same behaviour. I have now logged a bug with Apple, but in the meantime I would be interested to know if others are experiencing the same? Or if you are running 10.6.1 and not seeing this issue? Please add a comment &#8211; I&#8217;m still trying to work out if it is something installed on my system. I don&#8217;t think it is basic user preferences as I am seeing the same in another user-account on this system.</p>
<p>Editors <strong>incorrectly</strong> treating &#8220;word1.word2.word3&#8243; as a single word re opt-left and opt-right:</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">FlexBuilder 3 MXML and AS editors</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">FlashBuilder 4 Beta2 MXML and AS editors</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Apple Mail</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Apple OS textfields including:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>Spotlight</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>Finder window findfield</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><span style="white-space: pre;"> </span>Safari: form-textfields + google search field</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">editors with *correct* opt-left opt-right behaviour</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">TextWrangler</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Adobe Flash CS4 IDE ActionScript Editor</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Adobe DreamWeaver CS4 editor</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Apple XCode editor</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Apple Finder &#8211; filename clicked and editable when renaming</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Firefox form-textfields and goodle search field</div>
<ul>
<li>FlexBuilder 3 MXML and AS editors</li>
<li>FlashBuilder 4 Beta2 MXML and AS editors</li>
<li>Apple Mail</li>
<li>Apple OS TextFields including:</li>
<li><span style="white-space: pre;"> </span>Spotlight</li>
<li><span style="white-space: pre;"> </span>Finder window find-file</li>
<li><span style="white-space: pre;"> </span>Safari: form-textfields &amp; google search field</li>
</ul>
<p>Editors showing <strong>correct</strong> opt-left opt-right behaviour:</p>
<ul>
<li>TextWrangler</li>
<li>Adobe Flash CS4 IDE ActionScript Editor</li>
<li>Adobe DreamWeaver CS4 editor</li>
<li>Apple XCode editor</li>
<li>Apple Finder &#8211; filename clicked and editable when renaming</li>
<li>Firefox form-textfields and goodle search field</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2009/10/31/editor-bug-in-10-6-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>finding information on Flex 3 component lifecycle</title>
		<link>http://blog.creacog.co.uk/2009/05/21/finding-information-on-flex-3-component-lifecycle/</link>
		<comments>http://blog.creacog.co.uk/2009/05/21/finding-information-on-flex-3-component-lifecycle/#comments</comments>
		<pubDate>Thu, 21 May 2009 11:40:26 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[Flex Components]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=210</guid>
		<description><![CDATA[Quickly creating re-usable components based on others, augmented with additional ActionScript behaviour using MXML is as simple as can be. However, to create a component from scratch using ActionScript requires a lot of detailed knowledge of how the Flex framework works and the component life-cycle in particular. The Flex documentation attempts to describe the lifecycle, but [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px;">Quickly creating re-usable components based on others, augmented with additional ActionScript behaviour using MXML is as simple as can be. However, to create a component from scratch using ActionScript requires a lot of detailed knowledge of how the Flex framework works and the component life-cycle in particular.</p>
<p>The <a title="About creating advanced components" href="http://livedocs.adobe.com/flex/3/html/help.html?content=ascomponents_advanced_2.html">Flex documentation attempts to describe the lifecycle<img id="snap_com_shot_link_icon" class="snap_preview_icon" src="http://i.ixnp.com/images/v3.84/t.gif" alt="" /><img id="snap_com_shot_link_icon" class="snap_preview_icon" src="http://i.ixnp.com/images/v3.85/t.gif" alt="" /></a>, but can leave the developer with lots of unanswered questions. When I got more involved in developing components I found <a href="http://www.amazon.co.uk/gp/product/0596516215?ie=UTF8&amp;tag=creacogtheblo-21&amp;linkCode=as2&amp;camp=1634&amp;creative=6738&amp;creativeASIN=0596516215">chapter 19 of Programming Flex 3<img id="snap_com_shot_link_icon" class="snap_preview_icon" src="http://i.ixnp.com/images/v3.84/t.gif" alt="" /><img id="snap_com_shot_link_icon" class="snap_preview_icon" src="http://i.ixnp.com/images/v3.85/t.gif" alt="" /></a><img src="http://www.assoc-amazon.co.uk/e/ir?t=creacogtheblo-21&amp;l=as2&amp;o=2&amp;a=0596516215" border="0" alt="" width="1" height="1" /> good for filling in the gaps.</p>
<p>This week a new and free paper has been published by DevelopmentArc that also explores the component life-cycle and the application life-cycle. A very well worth while read….</p>
<p><a title="Understanding the Adobe Flex® 3 Component and Framework Lifecycle" href="http://www.developmentarc.com/site/articles/">Understanding the Adobe Flex® 3 Component and Framework Lifecycle<img id="snap_com_shot_link_icon" class="snap_preview_icon" src="http://i.ixnp.com/images/v3.84/t.gif" alt="" /><img id="snap_com_shot_link_icon" class="snap_preview_icon" src="http://i.ixnp.com/images/v3.85/t.gif" alt="" /></a></p>
<p>Feel free to post links to other compent lifecycle resrouces in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2009/05/21/finding-information-on-flex-3-component-lifecycle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SimpleOscilloscope : filter update</title>
		<link>http://blog.creacog.co.uk/2009/03/15/simpleoscilloscope-filter-update/</link>
		<comments>http://blog.creacog.co.uk/2009/03/15/simpleoscilloscope-filter-update/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 23:59:16 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Builder]]></category>
		<category><![CDATA[Flex Components]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=191</guid>
		<description><![CDATA[My SimpleOscilloscope component described in an earlier post has now been updated to include a few filters controllable through setting styles. Of course like any other Flex component, it can have additional filtering applied in the normal way. I just felt like including these : alphaDecay, redMultiplier, greenMultiplier, blueMultiplier, blurX, blurY, scrollX, scrollY. As ever, [...]]]></description>
			<content:encoded><![CDATA[<p>My SimpleOscilloscope component <a title="SimpleOscilloscope : my first opensource Flex component" href="http://blog.creacog.co.uk/2009/03/09/simpleoscilloscope-my-first-opensource-flex-component/">described in an earlier post</a> has now been updated to include a few filters controllable through setting styles. Of course like any other Flex component, it can have additional filtering applied in the normal way. I just felt like including these : alphaDecay, redMultiplier, greenMultiplier, blueMultiplier, blurX, blurY, scrollX, scrollY.</p>
<p>As ever, the project is <a title="ccglib on google code" href="http://code.google.com/p/ccglib/">on google code</a>, and <a title="SimleOscilloscope Test Bed" href="http://creative-cognition.co.uk/ccglibTestBeds/SimpleOscilloscopeTestBed/">the test bed is here</a>.</p>
<p><img class="alignleft size-medium wp-image-192" src="http://blog.creacog.co.uk/wp-content/uploads/2009/03/oscilloscope-r7-300x219.jpg" alt="SimpleOscilloscope snapshot - with filters" width="300" height="219" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2009/03/15/simpleoscilloscope-filter-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flash.display.BitmapData gotcha &#8211; well gotme for a while</title>
		<link>http://blog.creacog.co.uk/2009/03/13/flashdisplaybitmapdata-gotcha-well-gotme-for-a-while/</link>
		<comments>http://blog.creacog.co.uk/2009/03/13/flashdisplaybitmapdata-gotcha-well-gotme-for-a-while/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 01:45:34 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=187</guid>
		<description><![CDATA[The documentation is correct, so i have no excuse, but I didn&#8217;t initially read much beyond the signature of the constructor&#8230; public function BitmapData(width:int, height:int, transparent:Boolean = true, fillColor:uint = 0xFFFFFFFF) I needed a transparent bitmap. Reading the default &#8220;transparent:Boolean = true&#8221;, I assumed by simply supplying width and height, a transparent bitmap is what [...]]]></description>
			<content:encoded><![CDATA[<p>The <a title="BitmapData" href="http://livedocs.adobe.com/flex/3/langref/flash/display/BitmapData.html#BitmapData()">documentation is correct</a>, so i have no excuse, but I didn&#8217;t initially read much beyond the signature of the constructor&#8230;</p>
<p>public function BitmapData(width:int, height:int, transparent:Boolean = true, fillColor:uint = 0xFFFFFFFF)</p>
<p>I needed a transparent bitmap. Reading the default &#8220;transparent:Boolean = true&#8221;, I assumed by simply supplying width and height, a transparent bitmap is what I would get. Not so! I got a white rectangle. The reason being, that the default fill colour is 100% white. (The first pair of FFs representing the alpha in ARGB).</p>
<p>At first it would seem slightly unintuitive for the second default to conflict with the first, until one realises that the &#8216;transparent&#8217; flag is there to indicate whether the object will support transparency or not. Not to state that it should be initially created transparent. Supporting transparency increases data size from 24 bits per pixel to 32 bits per pixel.</p>
<p>So what i should have done :</p>
<p>bmd = new BitmapData( width, height, true, 0 );</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2009/03/13/flashdisplaybitmapdata-gotcha-well-gotme-for-a-while/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SimpleOscilloscope : my first opensource Flex component</title>
		<link>http://blog.creacog.co.uk/2009/03/09/simpleoscilloscope-my-first-opensource-flex-component/</link>
		<comments>http://blog.creacog.co.uk/2009/03/09/simpleoscilloscope-my-first-opensource-flex-component/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 11:44:52 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Builder]]></category>
		<category><![CDATA[Flex Components]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[ccglib]]></category>
		<category><![CDATA[Components]]></category>
		<category><![CDATA[sound]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=174</guid>
		<description><![CDATA[In the majority of my projects to-date, I am the sole developer on the project team. I was feeling the need to get into writing Flex components to a level that they could be distributed. Essentially making sure I use meta tags correctly and adding appropriate asdoc comments allowing other Flex developers to easily include [...]]]></description>
			<content:encoded><![CDATA[<p>In the majority of my projects to-date, I am the sole developer on the project team. I was feeling the need to get into writing Flex components to a level that they could be distributed. Essentially making sure I use meta tags correctly and adding appropriate asdoc comments allowing other Flex developers to easily include the component as they would any other from the Flex SDK.</p>
<p><a href="http://creative-cognition.co.uk/ccglibTestBeds/SimpleOscilloscopeTestBed/"><img class="size-full wp-image-175 alignleft" title="SimpleOscilloscope snapshot" src="http://blog.creacog.co.uk/wp-content/uploads/2009/03/thumbsimpleoscilloscope.gif" alt="SimpleOscilloscope snapshot" width="200" height="150" /></a></p>
<p>So, ccglib is an <a title="MIT License" href="http://www.opensource.org/licenses/mit-license.php" target="_blank">MIT license</a> OpenSource project hosted on google code through which i plan to release a number of components. The first component released is <a title="SimpleOscilloscope" href="http://code.google.com/p/ccglib/wiki/SimpleOscilloscope">SimpleOscilloscope</a>, which plots the currently playing sound-wave. Designed to be easily sized, coloured and positioned through application of styles.</p>
<ul style="clear:both;">
<li><a href="http://code.google.com/p/ccglib/">the ccglib project on google code</a> (get <a href="http://code.google.com/p/ccglib/source/checkout">the source</a>, or <a href="http://code.google.com/p/ccglib/downloads/list">download the swc library</a>)</li>
<li><a href="http://creative-cognition.co.uk/ccglibTestBeds/SimpleOscilloscopeTestBed/">the test-bed demonstrating SimpleOscilloscope</a> (view source enabled)</li>
<li><a href="http://www.creative-cognition.co.uk/caseStudies-ccglib.html">Case-study added to my corporate site</a></li>
<li><a href="http://www.gotoandlearn.com/play?id=62" target="_blank">gotoandlearn</a> : great tutorials on how to get started creating your own sound-wave visualisations with ActionScript</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2009/03/09/simpleoscilloscope-my-first-opensource-flex-component/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>coach tool in flex / air</title>
		<link>http://blog.creacog.co.uk/2009/02/23/coach-tool-in-flex-air/</link>
		<comments>http://blog.creacog.co.uk/2009/02/23/coach-tool-in-flex-air/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 18:52:59 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=162</guid>
		<description><![CDATA[Finally got around to adding a case-study to my corporate site including a screen-cast of some of the features of my longest running project, a Flex/AIR application for communicating football moves and plays. Essentially a digital, animated version of a football tactic board. More details and the screen-cast are on the creative-cognition case-study page.]]></description>
			<content:encoded><![CDATA[<p><a title="Coach Tool case study" href="http://www.creative-cognition.co.uk/caseStudies-coachTool.html"><img class="size-full wp-image-163 alignleft" title="Coach Tool snippet" src="http://blog.creacog.co.uk/wp-content/uploads/2009/02/thumbcoachtool.jpg" alt="Coach Tool snippet" width="200" height="150" /></a> Finally got around to adding a case-study to my corporate site including a screen-cast of some of the features of my longest running project, a Flex/AIR application for communicating football moves and plays. Essentially a digital, animated version of a football tactic board.</p>
<p>More details and the screen-cast are on the <a title="Coach Tool case study" href="http://www.creative-cognition.co.uk/caseStudies-coachTool.html">creative-cognition case-study</a> page.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2009/02/23/coach-tool-in-flex-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>going to see what haXe is all about&#8230;</title>
		<link>http://blog.creacog.co.uk/2009/01/28/going-to-see-what-haxe-is-all-about/</link>
		<comments>http://blog.creacog.co.uk/2009/01/28/going-to-see-what-haxe-is-all-about/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 15:16:54 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[User Groups]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=145</guid>
		<description><![CDATA[&#8230; at the London Flash Platform User Group&#8230; tomorrow (29 Jan 2009).]]></description>
			<content:encoded><![CDATA[<p>&#8230; at the <a title="haXe for Flash Developers" href="http://www.lfpug.com/29th-january-2009-29012009/">London Flash Platform User Group</a>&#8230; tomorrow (29 Jan 2009).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2009/01/28/going-to-see-what-haxe-is-all-about/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 reference docs on iPhone / iPodTouch</title>
		<link>http://blog.creacog.co.uk/2009/01/26/as3-reference-docs-on-iphone-ipodtouch/</link>
		<comments>http://blog.creacog.co.uk/2009/01/26/as3-reference-docs-on-iphone-ipodtouch/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 18:10:07 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPodTouch]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/?p=138</guid>
		<description><![CDATA[Really handy! &#8230; ActionScript 3, Air and Flex documentaion distributed as an application on iPhone and iPodTouch &#8211; by Mike Chambers. Downloaded it, had a play, simple and effective. A &#8216;back&#8217; button would be nice though in future versions]]></description>
			<content:encoded><![CDATA[<p>Really handy! &#8230; <a title="ActionScript 3 Reference for iPhone" href="http://www.mikechambers.com/blog/2009/01/26/actionscript-3-reference-for-iphone/">ActionScript 3, Air and Flex documentaion distributed as an application on iPhone and iPodTouch &#8211; by Mike Chambers</a>.</p>
<p>Downloaded it, had a play, simple and effective. A &#8216;back&#8217; button would be nice though in future versions <img src='http://blog.creacog.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2009/01/26/as3-reference-docs-on-iphone-ipodtouch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Peddling Tour de Flex</title>
		<link>http://blog.creacog.co.uk/2008/11/17/peddling-tour-de-flex/</link>
		<comments>http://blog.creacog.co.uk/2008/11/17/peddling-tour-de-flex/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 19:53:38 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/2008/11/17/peddling-tour-de-flex/</guid>
		<description><![CDATA[New Tour De Flex application looking like a very cool and a very useful resource. More information&#8230; http://flex.org/tour Basically it&#8217;s a Flex Component explorer as an AIR application and Eclipse plugin. Just thinking I&#8217;d have preferred that the System Chrome was used in the AIR app to provide the min/max/close buttons rather than those alien [...]]]></description>
			<content:encoded><![CDATA[<p>New Tour De Flex application looking like a very cool and a very useful resource. More information&#8230;</p>
<p><a href="http://flex.org/tour" title="TourDeFlex">http://flex.org/tour</a></p>
<p>Basically it&#8217;s a Flex Component explorer as an AIR application and Eclipse plugin.</p>
<p>Just thinking I&#8217;d have preferred that the System Chrome was used in the AIR app to provide the min/max/close buttons rather than those alien windows style icons on the wrong side of the window. Mac user me! <img src='http://blog.creacog.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><iframe src="http://tourdeflex.adobe.com/badge/" frameborder="0" height="182" scrolling="no" width="216"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2008/11/17/peddling-tour-de-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

