<?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>Tony Fendall &#187; UI</title>
	<atom:link href="http://blog.tonyfendall.com/tag/ui/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tonyfendall.com</link>
	<description>Welcome to my home on the web</description>
	<lastBuildDate>Sat, 14 Jan 2012 08:51:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dynamic UI Components (with source)</title>
		<link>http://blog.tonyfendall.com/2010/02/dynamic-ui-components/</link>
		<comments>http://blog.tonyfendall.com/2010/02/dynamic-ui-components/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 04:16:16 +0000</pubDate>
		<dc:creator>Tony Fendall</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Dynamic]]></category>
		<category><![CDATA[Example]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://blog.tonyfendall.com/?p=36</guid>
		<description><![CDATA[ Back in February 2008 I wrote an application called PostACard which ended up winning the 360&#124;Flex API Contest.&#160; I’m really proud of what I was able to create (less than 20 hours total development time) and I have always wanted to go back to it and see if I can extend it further.
Recently I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.tonyfendall.com/2010/02/dynamic-ui-components/"><img style="border-right-width: 0px; margin: 0px 10px 10px 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="wwf" border="0" alt="wwf" align="left" src="http://blog.tonyfendall.com/wp-content/uploads/wwf_thumb.jpg" width="173" height="206" /></a> Back in February 2008 I wrote an application called <a href="http://www.munkiihouse.com/?page_id=81">PostACard</a> which ended up winning the 360|Flex API Contest.&#160; I’m really proud of what I was able to create (less than 20 hours total development time) and I have always wanted to go back to it and see if I can extend it further.</p>
<p>Recently I have been playing around with the source code some more and in particular have been trying to see if I could reuse the movable component libraries I wrote.&#160; As part of this I have tidied the code up a bit and have extracted it from the rest of the application.&#160; Check out the demo below.</p>
<p>  <span id="more-36"></span>
<p><strong>How it Works:</strong>     <br />The movable component framework is based on the MovableCanvas class.&#160; This class can contain movable components and is responsible for managing selections and copy/paste etc.&#160; Into the MovableCanvas we can place any component we wish as long as it extends the class MovableComponent.&#160; In the example below the image components are MovableComponents which contain an Image.</p>
<p><strong>Try it Out:</strong></p>
<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="Movable" width="100%" height="500" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"><param name="movie" value="http://examples.tonyfendall.com/movable/Main.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="allowScriptAccess" value="sameDomain" /><embed src="http://examples.tonyfendall.com/movable/Main.swf" quality="high" bgcolor="#FFFFFF" width="100%" height="500" name="Movable" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></embed></object></p>
<p><a href="http://examples.tonyfendall.com/movable/srcview">The full source code is available here</a>. Feel free to take it and use it in any way which us useful to you.</p>
<p><strong>Things to Look Out For:</strong> </p>
<ul>
<li>The MovableComponent class contains a public function called clone().&#160; You must override this function in order for the copy/paste functionality to work. </li>
<li>It is also possible to force MovableComponents to maintain their aspect ratio using the maintainAspectRation property. </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.tonyfendall.com/2010/02/dynamic-ui-components/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
