<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6240056362316467999</id><updated>2011-10-11T02:44:06.263-07:00</updated><category term='screen print'/><category term='endpoint'/><category term='messagebroker'/><category term='screenshot'/><category term='customitemrenderer'/><category term='blazeds'/><category term='lcds'/><category term='print screen'/><category term='flexprintjob'/><title type='text'>Flex Tips</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://flex-lcds.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6240056362316467999/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://flex-lcds.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Visweshwar</name><uri>http://www.blogger.com/profile/07443465279627675538</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6240056362316467999.post-2153718195758815494</id><published>2009-04-10T21:53:00.000-07:00</published><updated>2009-04-12T09:29:03.869-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='customitemrenderer'/><title type='text'>Custrom Item renderer</title><content type='html'>This is a customitemrenderer and a live value mapping...&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;the&lt;a href="http://www.adrive.com/public/c8a52545788db1d463a44efb2a98c495fa24a5833d16bb711bb74956d561a074.html"&gt; link to the source&lt;/a&gt; &lt;a href="http://www.adrive.com/public/ff9c06b38f0170223f89af6d171976e02ffd2f9cc6aa0aa230badf6fc5fcbac2.html"&gt;view sample&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6240056362316467999-2153718195758815494?l=flex-lcds.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-lcds.blogspot.com/feeds/2153718195758815494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6240056362316467999&amp;postID=2153718195758815494' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6240056362316467999/posts/default/2153718195758815494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6240056362316467999/posts/default/2153718195758815494'/><link rel='alternate' type='text/html' href='http://flex-lcds.blogspot.com/2009/04/custrom-item-renderer.html' title='Custrom Item renderer'/><author><name>Visweshwar</name><uri>http://www.blogger.com/profile/07443465279627675538</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6240056362316467999.post-724149489716096941</id><published>2009-04-09T21:17:00.000-07:00</published><updated>2009-04-09T21:21:46.523-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='messagebroker'/><category scheme='http://www.blogger.com/atom/ns#' term='blazeds'/><category scheme='http://www.blogger.com/atom/ns#' term='endpoint'/><category scheme='http://www.blogger.com/atom/ns#' term='lcds'/><title type='text'>endpoint issue is not end of the road</title><content type='html'>errors like..&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 12px; line-height: 12px; "&gt;RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: &lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 12px; line-height: 12px; "&gt;&lt;a class="jive-link-external-small" href="http://]http//www.mydomain.com/messagebroker/amf'" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(0, 68, 119); text-decoration: none; "&gt;http://localhost:8080/WebContent/messagebroker/amf'"&lt;/a&gt; &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; font-size: 12px; line-height: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;can be resolved in a single step..&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px;"&gt;First ensure you don't modify anything in the service config file.. Leave the poor guy alone.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px;"&gt;Then right click on your project ---&gt; go to properties -&gt; flex server ==&gt; servercontextrooot --&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px;"&gt;Give it the same name as your project&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px;"&gt;if your project is Fantastico&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px;"&gt;your server root will be &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px;"&gt;/Fantastico..&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Arial; line-height: 12px;"&gt;Now you are good to go on any server any place blazeDs or LCDS no issue&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6240056362316467999-724149489716096941?l=flex-lcds.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-lcds.blogspot.com/feeds/724149489716096941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6240056362316467999&amp;postID=724149489716096941' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6240056362316467999/posts/default/724149489716096941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6240056362316467999/posts/default/724149489716096941'/><link rel='alternate' type='text/html' href='http://flex-lcds.blogspot.com/2009/04/endpoint-issue-is-not-end-of-road.html' title='endpoint issue is not end of the road'/><author><name>Visweshwar</name><uri>http://www.blogger.com/profile/07443465279627675538</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6240056362316467999.post-3383949378218819183</id><published>2009-04-02T10:25:00.000-07:00</published><updated>2009-04-02T10:47:22.439-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='print screen'/><category scheme='http://www.blogger.com/atom/ns#' term='flexprintjob'/><category scheme='http://www.blogger.com/atom/ns#' term='screen print'/><category scheme='http://www.blogger.com/atom/ns#' term='screenshot'/><title type='text'>Flex print screen</title><content type='html'>&lt;span class="Apple-style-span" style="font-size: medium;"&gt;This is a simple method to do a print screen from flex&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;private function doPrint(){&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;var printJob:FlexPrintJob = new FlexPrintJob();&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px; "&gt;&lt;pre style="font-family: Courier, mono; font-size: 100%; margin-top: 0px; margin-bottom: 0px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: georgia;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;  if (printJob.start() != true) return;&lt;/span&gt;&lt;/span&gt; &lt;/pre&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Courier; white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Application.application.minHeight = Capabilities.screenResolutionY;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Application.application.minWidth = Capabilities.screenResolutionX;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;printJob.addObject(UIComponent(Application.application),&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial; "&gt;&lt;em style="font-style: normal; text-decoration: inherit; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; FlexPrintJobScaleType.MATCH_WIDTH);&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: arial; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;printJob.send();&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: arial;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: arial; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt; application.invalidateDisplayList();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma; white-space: nowrap;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;application.invalidateSize();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma; white-space: nowrap;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;application.invalidateProperties();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma; white-space: nowrap;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;application.initialize();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Tahoma; white-space: nowrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Last and not the least call this function from your button or image or any thing..&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6240056362316467999-3383949378218819183?l=flex-lcds.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-lcds.blogspot.com/feeds/3383949378218819183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6240056362316467999&amp;postID=3383949378218819183' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6240056362316467999/posts/default/3383949378218819183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6240056362316467999/posts/default/3383949378218819183'/><link rel='alternate' type='text/html' href='http://flex-lcds.blogspot.com/2009/04/flex-print-screen.html' title='Flex print screen'/><author><name>Visweshwar</name><uri>http://www.blogger.com/profile/07443465279627675538</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6240056362316467999.post-7206620617418561966</id><published>2009-03-28T20:30:00.000-07:00</published><updated>2009-03-28T20:35:47.662-07:00</updated><title type='text'>A simple timer event</title><content type='html'>So many times one searches for a simple timer event. Say I want to do some thing after few seconds then one requires a timer so here it goes..&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public var t:Timer;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public function init():void{&lt;/div&gt;&lt;div&gt;//This can be any function...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;t = new Timer(3000); //3000 is the timer interval which corresponds to 3 secs&lt;/div&gt;&lt;div&gt;t.start();&lt;/div&gt;&lt;div&gt;t.addEventListener(TimerEvent.TIMER,targets);//So after 3 secs it goes to the targets function&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public function targets(event:Event):void{&lt;/div&gt;&lt;div&gt;t.stop();//Stop the timer&lt;/div&gt;&lt;div&gt;Alert.show("Ta da I am here after 3 secs");&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6240056362316467999-7206620617418561966?l=flex-lcds.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-lcds.blogspot.com/feeds/7206620617418561966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6240056362316467999&amp;postID=7206620617418561966' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6240056362316467999/posts/default/7206620617418561966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6240056362316467999/posts/default/7206620617418561966'/><link rel='alternate' type='text/html' href='http://flex-lcds.blogspot.com/2009/03/simple-timer-event.html' title='A simple timer event'/><author><name>Visweshwar</name><uri>http://www.blogger.com/profile/07443465279627675538</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6240056362316467999.post-7031188734339160365</id><published>2008-12-10T19:01:00.000-08:00</published><updated>2008-12-10T19:29:46.022-08:00</updated><title type='text'>Caringorm Drawback a solution..</title><content type='html'>This blog is thanks to &lt;a href="http://www.dgrigg.com/post.cfm/04/12/2007/Cairngorm-Commands-Views-and-Harikiri"&gt;Derrick's&lt;/a&gt; views which I concur with and the inspiration for this sample code from &lt;a href="http://firemoss.net/post.cfm/Adding-a-ViewController-into-your-Cairngorm-app"&gt;joe's Blog &lt;/a&gt;..&lt;div&gt;&lt;div&gt;What led to this code..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. The cairngorm draw back of a failure to communicate from the command to the view.&lt;/div&gt;&lt;div&gt;2. The non ability to track an event after dispatch which is very essential.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A extremely detailed analysis is available courtesy &lt;a href="http://jessewarden.com/2007/05/cairngorm-command-flaws-and-what-you-can-do-about-them.html#comment-141115"&gt;Jess&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;A small review of the code... (details available at &lt;a href="http://firemoss.net/post.cfm/Adding-a-ViewController-into-your-Cairngorm-app"&gt;joe's Blog&lt;/a&gt;)...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;From the command one can send results or intimate the view that a particular event has completed or faultered.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;So we dispatch an cairngorm event from the command. This is controlled by viewcontroller a sort of frontcontroller and another || sort of command which handles the event.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now in the view we are listening to this event so as soon as this event occurs the functions are performed. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This introduces a lot of flexibility in the view and the command is reusable and it gets into the true code reuse formula...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://sites.google.com/site/adobeflexgroup/Home/srcwithviewcontroller.zip?attredirects=0"&gt;sample code..&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6240056362316467999-7031188734339160365?l=flex-lcds.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-lcds.blogspot.com/feeds/7031188734339160365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6240056362316467999&amp;postID=7031188734339160365' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6240056362316467999/posts/default/7031188734339160365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6240056362316467999/posts/default/7031188734339160365'/><link rel='alternate' type='text/html' href='http://flex-lcds.blogspot.com/2008/12/caringorm-drawback-solution.html' title='Caringorm Drawback a solution..'/><author><name>Visweshwar</name><uri>http://www.blogger.com/profile/07443465279627675538</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6240056362316467999.post-4849450026307126756</id><published>2008-12-10T08:22:00.000-08:00</published><updated>2008-12-10T09:17:46.504-08:00</updated><title type='text'>Cairngorm Phew!!!</title><content type='html'>&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Cairngorm&lt;/span&gt; was always a slippery eel. You hold one class the other slips through your hands. But thanks to David Tucker &amp;amp; other &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;bloggers&lt;/span&gt; it enabled me to put together an example which one may relish. Probably it may be just another example but you know what my exp. says the more examples you browse:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. You get better in reading code.&lt;/div&gt;&lt;div&gt;2. You get a different perspective.&lt;/div&gt;&lt;div&gt;3. Nobody can say you ripped in out from this blog.&lt;span class="Apple-style-span" style="font-style: italic;"&gt;.just joking..&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Lets start with few basics. I know this ya &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;da&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;da&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;da&lt;/span&gt; is there every where but its important you know.. My post must be long you see... So here goes my version..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First thing none of these bifurcations are strict you could implement every thing in one page or break it into tiny pieces.. Why? since the whole community is reading it like that nah it makes sense on a long run.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You must have  a Main.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;mxml&lt;/span&gt; which is going to house all other elements of this jig saw puzzle. &lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;modelLocator&lt;/span&gt; will hold the variables which area going to be common across modules and which has to be accessed in the command section. we'll see that later.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;view: this will hold the view section or the so called front end of the flex application&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;vo&lt;/span&gt;(value object): some thing like a bean we use in java while send data to the event to the command. I am coming to that ..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Front controller: the supervisor.. He says which event is linked to which command. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Event: when you want to perform an operation we could trigger an event.. We could pass data into the event too..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Command: At last we are here.. This would perform all the dirty operations talking to database updating the model variables  handling results and all that.. They say the model variables can be touched only by the command ..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;service: it holds the &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_8"&gt;declaration&lt;/span&gt; of the remoteObject ,Httpservice and all that Just the declaration thats all..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Delegate: Now the command is really over stressed so lets delegate some part of the work. The delegate will talk to the service and handle the remote calls..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Who should bear the results.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The responder is responsible to handle faults and results..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So the command now modifies the model variables and ta da thats cairngorm...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It sounds wierd right.. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Visit davidtucker.net for some fantastic video tutorials.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The other sites..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;cairngormdocs.org&lt;/div&gt;&lt;div&gt;the adobe labs site for cairngorm..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;By the way there is a sample application that I promised and here it is&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://sites.google.com/site/adobeflexgroup/Home/src.zip?attredirects=0"&gt;source Files&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6240056362316467999-4849450026307126756?l=flex-lcds.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flex-lcds.blogspot.com/feeds/4849450026307126756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6240056362316467999&amp;postID=4849450026307126756' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6240056362316467999/posts/default/4849450026307126756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6240056362316467999/posts/default/4849450026307126756'/><link rel='alternate' type='text/html' href='http://flex-lcds.blogspot.com/2008/12/cairngorm-phew.html' title='Cairngorm Phew!!!'/><author><name>Visweshwar</name><uri>http://www.blogger.com/profile/07443465279627675538</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
