<?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>MikeCann.co.uk &#187; Component - MikeCann.co.uk - mikey see, mikey do!</title>
	<atom:link href="http://mikecann.co.uk/tag/component/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikecann.co.uk</link>
	<description>mikey see, mikey do!</description>
	<lastBuildDate>Sat, 28 Jan 2012 13:10:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Multi-Line Flex Label [MXML]</title>
		<link>http://mikecann.co.uk/programming/multi-line-flex-label-mxml/</link>
		<comments>http://mikecann.co.uk/programming/multi-line-flex-label-mxml/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 19:14:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[MXML]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[label]]></category>
		<category><![CDATA[Spark]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://mikecann.co.uk/?p=1441</guid>
		<description><![CDATA[Just stumbled across this one while writing some mxml for a personal project and thought I would share. Have you ever wanted to have multi-line text in your label component in spark and thought the following should work? But all it produces is: Yep me too. After some playing however I stumbled accross the following solution: It then [...]]]></description>
			<content:encoded><![CDATA[<p>Just stumbled across this one while writing some mxml for a personal project and thought I would share.</p>
<p>Have you ever wanted to have multi-line text in your label component in spark and thought the following should work?</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="mxml" style="font-family:monospace;"><span class="sc3"><span class="re1">&lt;s:Label</span> text=<span class="st0">&quot;I like text on the \n next line&quot;</span> <span class="re2">/&gt;</span></span></pre></div></div>
<p>But all it produces is:</p>
<p><a href="http://mikecann.co.uk/wp-content/uploads/2010/11/Shot_001.png"><img class="alignnone size-full wp-image-1442" title="Shot_001" src="http://mikecann.co.uk/wp-content/uploads/2010/11/Shot_001.png" alt="" width="230" height="148" /></a></p>
<p>Yep me too.</p>
<p>After some playing however I stumbled accross the following solution:</p>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="mxml" style="font-family:monospace;"><span class="sc3"><span class="re1">&lt;s:Label</span> text=<span class="st0">&quot;I like text on the {'\n'} next line&quot;</span> <span class="re2">/&gt;</span></span></pre></div></div>
<p>It then produces the expected result:</p>
<p><a href="http://mikecann.co.uk/wp-content/uploads/2010/11/Shot_0021.png"><img class="alignnone size-full wp-image-1444" title="Shot_002" src="http://mikecann.co.uk/wp-content/uploads/2010/11/Shot_0021.png" alt="" width="240" height="152" /></a></p>
<p>Im just guessing but I suspect its something to do with the black art of the flex life cycle. By adding the {&#8216;\n&#8217;} we are turning the property initialisation on the label component from a simple literal assignment into a delayed binding assignment and therefore gets parsed differently.</p>
<p>Just a guess, let me know if im way off.</p>
]]></content:encoded>
			<wfw:commentRss>http://mikecann.co.uk/programming/multi-line-flex-label-mxml/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SWFt &#8211; Dependency Injection Component Based Game Framework</title>
		<link>http://mikecann.co.uk/personal-project/swft-dependency-injection-component-based-game-framework/</link>
		<comments>http://mikecann.co.uk/personal-project/swft-dependency-injection-component-based-game-framework/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 16:22:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Personal Projects]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[SWFt]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[Dependency Injection]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[FlashPunk]]></category>
		<category><![CDATA[Flixel]]></category>
		<category><![CDATA[framwork]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[IoC]]></category>
		<category><![CDATA[Opensource]]></category>
		<category><![CDATA[pbe]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://mikecann.co.uk/?p=1081</guid>
		<description><![CDATA[This is my first post of what I suspect will be many on the subject of SWFt. What is SWFt I hear you cry? Well in a nut shell SWFt is an Entity-Component based game framework powered by Dependency Injection. Still confused? Well basically its a really nice neat method for making flash games. Still [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mikecann.co.uk/wp-content/uploads/2010/06/swft10-1.png"><img class="alignnone size-medium wp-image-1083" title="swft10 (1)" src="http://mikecann.co.uk/wp-content/uploads/2010/06/swft10-1-300x167.png" alt="" width="300" height="167" /></a></p>
<p>This is my first post of what I suspect will be many on the subject of SWFt.</p>
<p>What is SWFt I hear you cry? Well in a nut shell SWFt is an Entity-Component based game framework powered by Dependency Injection. Still confused? Well basically its a really nice neat method for making flash games. Still interested? Read on!</p>
<p><span id="more-1081"></span></p>
<p>First the history, if you arent interested in this then just skip on down to &#8220;What exactly is it?&#8221;</p>
<p><strong>History</strong></p>
<p>It started off as an idea I had while playing around with some RobotLegs code. For those not in the know, <a href="http://www.robotlegs.org/">RobotLegs </a> (RL) is an awsome Inversion of Control (IoC) or Dependency Injection (DI) MVCS framework for making Rich Internet Applications (I wrote a post on it <a href="http://mikecann.co.uk/programming/on-the-bleeding-edge/">here</a>). IoC and DI were new concepts to me and I was fascinated and excited by the power that they had especially when couppled with something like <a href="http://github.com/robertpenner/as3-signals">AS3 Signals</a>.</p>
<p>At the time of this discovery I was working on a game that used <a href="http://pushbuttonengine.com/">Push Button Engine</a> (PBE) and <a href="http://mate.asfusion.com/">Mate </a>as the basis for development. Feeling dissatisfied with PBE and Mate I wondered if there was a way I could take all the cool things I was playing around with RobotLegs and apply them to some of the cool aspects of PBE.</p>
<p>The first thing I did was to check to see if anyone else has had the idea of using DI in a component based game engine. It looked like it hasnt been done in AS3 but it looks like it has already been thought about and documented in Java. There has been a paper written about it here: <a href="http://portal.acm.org/citation.cfm?id=1658866.1658872" target="_blank">http://portal.acm.org/citation.cfm?id=1658866.1658872</a>, I managed to get my greasy mitts on it and enjoyed the read however I think there was definitely room for improvement in AS3.</p>
<p>The next thing was to seek advice on whether it could even be done in RL. I decided that I should go straight to the source and I emailed one of the contributors to the RL project, Stray. It turns out stray is a very nice lady who is also from the north of the UK. She had some good words of advice but she recommendation that I repost my question to the RL mailing list where the other contributors to the project tend to lurk.</p>
<p>So I wrote up my query<a href="http://groups.google.com/group/robotlegs/browse_thread/thread/f7e325c5caf14d93"> and posted it</a>. I added in some diagrams of how I thought it may look:</p>
<p><a href="http://mikecann.co.uk/wp-content/uploads/2010/06/Relationships-1.png"><img class="alignnone size-medium wp-image-1085" title="Relationships 1" src="http://mikecann.co.uk/wp-content/uploads/2010/06/Relationships-1-300x259.png" alt="" width="300" height="259" /></a><a href="http://mikecann.co.uk/wp-content/uploads/2010/06/Example-1.png"><img class="alignnone size-medium wp-image-1086" title="Example 1" src="http://mikecann.co.uk/wp-content/uploads/2010/06/Example-1-300x161.png" alt="" width="300" height="161" /></a></p>
<p>To cut a long story short, after <a href="http://groups.google.com/group/robotlegs/browse_thread/thread/4833ba99cd12b25a">several months</a> of <a href="http://groups.google.com/group/robotlegs/browse_thread/thread/4d3eb6d8f8dd64bc#">posts</a> back and forth with many excellent suggestions and contributions I felt it was time that the project migrated to its own home as not spam up the RL list too much. As such <a href="http://groups.google.com/group/swft-framework">SWft &#8211; Game Framework</a> mailing list was born! Its still very new and as such there arent many posts yet but I hope for that to grow as the project progresses.</p>
<p>We also have a website: <a href="http://www.swft.co.uk">http://www.swft.co.uk</a> but its meerly a holding page for now.</p>
<p><strong>What exactly is it?</strong></p>
<p>Okay so I promised I would talk about what SWFt actually is. Well without going into too much detail (more posts will follow that will flesh out examples etc) SWFt lets you make AS3 Flash games in a modular component based fashion like you do with <a href="http://pushbuttonengine.com/">Push Button Engine</a> but it lets you keep the strict-type, compile-time checked game structure like you may find in <a href="http://flixel.org/">Flixel </a>or <a href="http://flashpunk.net/">Flash Punk</a>.</p>
<p>Its still very alpha and has alot more work left to do on it but you can follow progress on our GitHub page here: <a href="http://github.com/mikecann/Swft">http://github.com/mikecann/Swft</a> and some examples can also be found here: <a href="http://github.com/mikecann/Swift-Examples">http://github.com/mikecann/Swift-Examples</a> (the red-blue circle experiment is currently broken)</p>
<p>As I say, its still very early days, but I have been wanting to blog about it for a while as its a very exciting project im currently working on <img src='http://mikecann.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Contributions</strong></p>
<p>If you are interested in contributing code or thoughts or anything then shoot a message on the mailing list: <a href="http://groups.google.com/group/swft-framework">http://groups.google.com/group/swft-framework</a></p>
<p>Expect more posts in the coming weeks!</p>
]]></content:encoded>
			<wfw:commentRss>http://mikecann.co.uk/personal-project/swft-dependency-injection-component-based-game-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resizeable Chromeless Window AIR</title>
		<link>http://mikecann.co.uk/personal-projects/resizeable-chromeless-window-air/</link>
		<comments>http://mikecann.co.uk/personal-projects/resizeable-chromeless-window-air/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 23:06:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MXML]]></category>
		<category><![CDATA[Personal Projects]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Component]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Resize]]></category>
		<category><![CDATA[Source]]></category>

		<guid isPermaLink="false">http://www.mikecann.co.uk/?p=917</guid>
		<description><![CDATA[Thought I would share this little ditty. Been working in AIR recently and decided to make the window &#8220;chromeless&#8221; which means there are no controls so no resizing. Thankfully however adobe provide the tools to allow for resizing the native window. So I produced this little mxml component to let you resize the window: The coloured edges indicate where [...]]]></description>
			<content:encoded><![CDATA[<p>Thought I would share this little ditty. Been working in AIR recently and decided to make the window &#8220;chromeless&#8221; which means there are no controls so no resizing.</p>
<p>Thankfully however adobe provide the tools to allow for resizing the native window. So I produced this little mxml component to let you resize the window:</p>
<p><a href="http://mikecann.co.uk/wp-content/uploads/2010/02/ScreenHunter_02-Feb.-21-21.40.gif"><img class="alignnone size-full wp-image-923" title="ScreenHunter_02 Feb. 21 21.40" src="http://mikecann.co.uk/wp-content/uploads/2010/02/ScreenHunter_02-Feb.-21-21.40.gif" alt="" width="669" height="425" /></a></p>
<p>The coloured edges indicate where the application is draggable, including the white corner areas.</p>
<p>The component that lets you do this is pretty simple:</p>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="mxml" style="font-family:monospace;"><span class="sc3">&lt;?xml version=<span class="st0">&quot;1.0&quot;</span> encoding=<span class="st0">&quot;utf-8&quot;</span>?<span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:Group</span> xmlns:fx=<span class="st0">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span class="sc3">xmlns:s=<span class="st0">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span class="sc3">xmlns:mx=<span class="st0">&quot;library://ns.adobe.com/flex/halo&quot;</span><span class="re2">&gt;</span></span>
&nbsp;
<span class="sc3"><span class="re1">&lt;fx:Script</span><span class="re2">&gt;</span></span>
<span class="sc3">&lt;!<span class="br0">&#91;</span>CDATA<span class="br0">&#91;</span></span>
<span class="sc3">import flash.display.NativeWindowResize;</span>
<span class="sc3">import flash.events.MouseEvent;</span>
&nbsp;
<span class="sc3">import mx.managers.CursorManager;</span>
<span class="sc3">public static const RESIZE_AREA : int = <span class="nu0">10</span>;</span>
&nbsp;
<span class="sc3">protected function onRollOver<span class="br0">&#40;</span>event:MouseEvent<span class="br0">&#41;</span>:void</span>
<span class="sc3"><span class="br0">&#123;</span></span>
<span class="sc3"><span class="br0">&#125;</span></span>
&nbsp;
<span class="sc3">protected function onRollOut<span class="br0">&#40;</span>event:MouseEvent<span class="br0">&#41;</span>:void</span>
<span class="sc3"><span class="br0">&#123;</span></span>
<span class="sc3"><span class="br0">&#125;</span></span>
&nbsp;
<span class="sc3">protected function onMouseDown<span class="br0">&#40;</span>event:MouseEvent<span class="br0">&#41;</span>:void</span>
<span class="sc3"><span class="br0">&#123;</span></span>
<span class="sc3">var grp : Group = event.target as Group;</span>
<span class="sc3">var resizeFrom:String = <span class="st0">&quot;&quot;</span>;</span>
&nbsp;
<span class="sc3">if <span class="br0">&#40;</span>grp==topSide<span class="br0">&#41;</span><span class="br0">&#123;</span> resizeFrom=NativeWindowResize.TOP;	<span class="br0">&#125;</span></span>
<span class="sc3">else if <span class="br0">&#40;</span>grp==rightSide<span class="br0">&#41;</span> <span class="br0">&#123;</span> resizeFrom=NativeWindowResize.RIGHT; <span class="br0">&#125;</span></span>
<span class="sc3">else if <span class="br0">&#40;</span>grp==bottomSide<span class="br0">&#41;</span> <span class="br0">&#123;</span> resizeFrom=NativeWindowResize.BOTTOM; <span class="br0">&#125;</span></span>
<span class="sc3">else if <span class="br0">&#40;</span>grp==leftSide<span class="br0">&#41;</span> <span class="br0">&#123;</span> resizeFrom=NativeWindowResize.LEFT;	<span class="br0">&#125;</span></span>
<span class="sc3">else if <span class="br0">&#40;</span>grp==topLeft<span class="br0">&#41;</span> <span class="br0">&#123;</span> resizeFrom=NativeWindowResize.TOP_LEFT;	<span class="br0">&#125;</span></span>
<span class="sc3">else if <span class="br0">&#40;</span>grp==topRight<span class="br0">&#41;</span> <span class="br0">&#123;</span> resizeFrom=NativeWindowResize.TOP_RIGHT;	<span class="br0">&#125;</span></span>
<span class="sc3">else if <span class="br0">&#40;</span>grp==bottomRight<span class="br0">&#41;</span> <span class="br0">&#123;</span> resizeFrom=NativeWindowResize.BOTTOM_RIGHT;	<span class="br0">&#125;</span></span>
<span class="sc3">else if <span class="br0">&#40;</span>grp==bottomLeft<span class="br0">&#41;</span> <span class="br0">&#123;</span> resizeFrom=NativeWindowResize.BOTTOM_LEFT;	<span class="br0">&#125;</span></span>
<span class="sc3">else <span class="br0">&#123;</span> return; <span class="br0">&#125;</span></span>
&nbsp;
<span class="sc3">stage.nativeWindow.startResize<span class="br0">&#40;</span>resizeFrom<span class="br0">&#41;</span>;</span>
<span class="sc3"><span class="br0">&#125;</span></span>
&nbsp;
<span class="sc3"><span class="br0">&#93;</span><span class="br0">&#93;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/fx:Script</span><span class="re2">&gt;</span></span>
&nbsp;
<span class="sc3"><span class="re1">&lt;s:Group</span> id=<span class="st0">&quot;topSide&quot;</span> rollOver=<span class="st0">&quot;onRollOver(event)&quot;</span> rollOut=<span class="st0">&quot;onRollOut(event)&quot;</span> mouseDown=<span class="st0">&quot;onMouseDown(event)&quot;</span></span>
<span class="sc3">x=<span class="st0">&quot;0&quot;</span> y=<span class="st0">&quot;0&quot;</span> width=<span class="st0">&quot;{width}&quot;</span> height=<span class="st0">&quot;{RESIZE_AREA}&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:Rect</span> width=<span class="st0">&quot;100%&quot;</span> height=<span class="st0">&quot;100%&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:SolidColor</span> color=<span class="st0">&quot;0xFF0000&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Rect</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Group</span><span class="re2">&gt;</span></span>
&nbsp;
<span class="sc3"><span class="re1">&lt;s:Group</span> id=<span class="st0">&quot;rightSide&quot;</span> rollOver=<span class="st0">&quot;onRollOver(event)&quot;</span> rollOut=<span class="st0">&quot;onRollOut(event)&quot;</span> mouseDown=<span class="st0">&quot;onMouseDown(event)&quot;</span></span>
<span class="sc3">x=<span class="st0">&quot;{width-RESIZE_AREA}&quot;</span> y=<span class="st0">&quot;0&quot;</span> width=<span class="st0">&quot;{RESIZE_AREA}&quot;</span> height=<span class="st0">&quot;{height}&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:Rect</span> width=<span class="st0">&quot;100%&quot;</span> height=<span class="st0">&quot;100%&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:SolidColor</span> color=<span class="st0">&quot;0x00FF00&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Rect</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Group</span><span class="re2">&gt;</span></span>
&nbsp;
<span class="sc3"><span class="re1">&lt;s:Group</span> id=<span class="st0">&quot;bottomSide&quot;</span> rollOver=<span class="st0">&quot;onRollOver(event)&quot;</span> rollOut=<span class="st0">&quot;onRollOut(event)&quot;</span> mouseDown=<span class="st0">&quot;onMouseDown(event)&quot;</span></span>
<span class="sc3">x=<span class="st0">&quot;0&quot;</span> y=<span class="st0">&quot;{height-RESIZE_AREA}&quot;</span> width=<span class="st0">&quot;{width}&quot;</span> height=<span class="st0">&quot;{RESIZE_AREA}&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:Rect</span> width=<span class="st0">&quot;100%&quot;</span> height=<span class="st0">&quot;100%&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:SolidColor</span> color=<span class="st0">&quot;0x0000FF&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Rect</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Group</span><span class="re2">&gt;</span></span>
&nbsp;
<span class="sc3"><span class="re1">&lt;s:Group</span> id=<span class="st0">&quot;leftSide&quot;</span> rollOver=<span class="st0">&quot;onRollOver(event)&quot;</span> rollOut=<span class="st0">&quot;onRollOut(event)&quot;</span> mouseDown=<span class="st0">&quot;onMouseDown(event)&quot;</span></span>
<span class="sc3">x=<span class="st0">&quot;0&quot;</span> y=<span class="st0">&quot;0&quot;</span> width=<span class="st0">&quot;{RESIZE_AREA}&quot;</span> height=<span class="st0">&quot;{height}&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:Rect</span> width=<span class="st0">&quot;100%&quot;</span> height=<span class="st0">&quot;100%&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:SolidColor</span> color=<span class="st0">&quot;0x000000&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Rect</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Group</span><span class="re2">&gt;</span></span>
&nbsp;
<span class="sc3"><span class="re1">&lt;s:Group</span> id=<span class="st0">&quot;topLeft&quot;</span> rollOver=<span class="st0">&quot;onRollOver(event)&quot;</span> rollOut=<span class="st0">&quot;onRollOut(event)&quot;</span> mouseDown=<span class="st0">&quot;onMouseDown(event)&quot;</span></span>
<span class="sc3">x=<span class="st0">&quot;0&quot;</span> y=<span class="st0">&quot;0&quot;</span> width=<span class="st0">&quot;{RESIZE_AREA}&quot;</span> height=<span class="st0">&quot;{RESIZE_AREA}&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:Rect</span> width=<span class="st0">&quot;100%&quot;</span> height=<span class="st0">&quot;100%&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:SolidColor</span> color=<span class="st0">&quot;0xffffff&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Rect</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Group</span><span class="re2">&gt;</span></span>
&nbsp;
<span class="sc3"><span class="re1">&lt;s:Group</span> id=<span class="st0">&quot;topRight&quot;</span> rollOver=<span class="st0">&quot;onRollOver(event)&quot;</span> rollOut=<span class="st0">&quot;onRollOut(event)&quot;</span> mouseDown=<span class="st0">&quot;onMouseDown(event)&quot;</span></span>
<span class="sc3">x=<span class="st0">&quot;{width-RESIZE_AREA}&quot;</span> y=<span class="st0">&quot;0&quot;</span> width=<span class="st0">&quot;{RESIZE_AREA}&quot;</span> height=<span class="st0">&quot;{RESIZE_AREA}&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:Rect</span> width=<span class="st0">&quot;100%&quot;</span> height=<span class="st0">&quot;100%&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:SolidColor</span> color=<span class="st0">&quot;0xffffff&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Rect</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Group</span><span class="re2">&gt;</span></span>
&nbsp;
<span class="sc3"><span class="re1">&lt;s:Group</span> id=<span class="st0">&quot;bottomRight&quot;</span> rollOver=<span class="st0">&quot;onRollOver(event)&quot;</span> rollOut=<span class="st0">&quot;onRollOut(event)&quot;</span> mouseDown=<span class="st0">&quot;onMouseDown(event)&quot;</span></span>
<span class="sc3">x=<span class="st0">&quot;{width-RESIZE_AREA}&quot;</span> y=<span class="st0">&quot;{height-RESIZE_AREA}&quot;</span> width=<span class="st0">&quot;{RESIZE_AREA}&quot;</span> height=<span class="st0">&quot;{RESIZE_AREA}&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:Rect</span> width=<span class="st0">&quot;100%&quot;</span> height=<span class="st0">&quot;100%&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:SolidColor</span> color=<span class="st0">&quot;0xffffff&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Rect</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Group</span><span class="re2">&gt;</span></span>
&nbsp;
<span class="sc3"><span class="re1">&lt;s:Group</span> id=<span class="st0">&quot;bottomLeft&quot;</span> rollOver=<span class="st0">&quot;onRollOver(event)&quot;</span> rollOut=<span class="st0">&quot;onRollOut(event)&quot;</span> mouseDown=<span class="st0">&quot;onMouseDown(event)&quot;</span></span>
<span class="sc3">x=<span class="st0">&quot;0&quot;</span> y=<span class="st0">&quot;{height-RESIZE_AREA}&quot;</span> width=<span class="st0">&quot;{RESIZE_AREA}&quot;</span> height=<span class="st0">&quot;{RESIZE_AREA}&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:Rect</span> width=<span class="st0">&quot;100%&quot;</span> height=<span class="st0">&quot;100%&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:SolidColor</span> color=<span class="st0">&quot;0xffffff&quot;</span> <span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:fill</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Rect</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/s:Group</span><span class="re2">&gt;</span></span>
&nbsp;
<span class="sc3"><span class="re1">&lt;/s:Group</span><span class="re2">&gt;</span></span></pre></div></div>
<p>To use it in your app just add the component into your existing view somewhere:</p>
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://mikecann.co.uk/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="mxml" style="font-family:monospace;"><span class="sc3">&lt;?xml version=<span class="st0">&quot;1.0&quot;</span> encoding=<span class="st0">&quot;utf-8&quot;</span>?<span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;s:SkinnableContainer</span> xmlns:fx=<span class="st0">&quot;http://ns.adobe.com/mxml/2009&quot;</span> xmlns:s=<span class="st0">&quot;library://ns.adobe.com/flex/spark&quot;</span> xmlns:mx=<span class="st0">&quot;library://ns.adobe.com/flex/halo&quot;</span><span class="re2">&gt;</span></span>
&nbsp;
<span class="sc3"><span class="re1">&lt;components:WindowResizer</span> width=<span class="st0">&quot;{width}&quot;</span> height=<span class="st0">&quot;{height}&quot;</span> alpha=<span class="st0">&quot;0&quot;</span> buttonMode=<span class="st0">&quot;true&quot;</span> <span class="re2">/&gt;</span></span>
&nbsp;
<span class="sc3"><span class="re1">&lt;/s:SkinnableContainer</span><span class="re2">&gt;</span></span></pre></div></div>
<p>Setting the alpha to zero will obviously hide the coloured areas at the side of the window.</p>
<p>Grab the mxml here: <a href="http://www.mikecann.co.uk/Files/WindowResizer.mxml">WindowResizer.mxml</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mikecann.co.uk/personal-projects/resizeable-chromeless-window-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

