<?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-6078002092599021985</id><updated>2011-07-12T01:34:18.244-07:00</updated><title type='text'>Flex MVC Architecture (CAIRNGORM)</title><subtitle type='html'>Cairngorm is based on the MVC Model. It is specifically designed to facilitate complex state and data synchronization between the client and the server, while keeping the programming of the View layer detached from the data implementation.
The role of the View layer in a Cairngorm application is to throw events and bind to data stored in the Model.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rwsflex.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6078002092599021985/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://rwsflex.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Rajesh Yadav</name><uri>http://www.blogger.com/profile/02114518401726792927</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>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6078002092599021985.post-1226105339063124331</id><published>2011-07-12T01:32:00.000-07:00</published><updated>2011-07-12T01:34:18.252-07:00</updated><title type='text'>convert Xml To ArrayCollection in flex</title><content type='html'>here datafield is your xml tag&lt;br /&gt;&lt;br /&gt;public static function convertXmlToArrayCollection( file:String, datafield:String ):ArrayCollection&lt;br /&gt;    {&lt;br /&gt;     var xml:XMLDocument = new XMLDocument( file );&lt;br /&gt;    &lt;br /&gt;     var decoder:SimpleXMLDecoder = new SimpleXMLDecoder();&lt;br /&gt;     var data:Object = decoder.decodeXML( xml );&lt;br /&gt;     var array:Array = ArrayUtil.toArray( data[datafield] );&lt;br /&gt;     return new ArrayCollection( array );&lt;br /&gt;    }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6078002092599021985-1226105339063124331?l=rwsflex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rwsflex.blogspot.com/feeds/1226105339063124331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rwsflex.blogspot.com/2011/07/convert-xml-to-arraycollection-in-flex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6078002092599021985/posts/default/1226105339063124331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6078002092599021985/posts/default/1226105339063124331'/><link rel='alternate' type='text/html' href='http://rwsflex.blogspot.com/2011/07/convert-xml-to-arraycollection-in-flex.html' title='convert Xml To ArrayCollection in flex'/><author><name>Rajesh Yadav</name><uri>http://www.blogger.com/profile/02114518401726792927</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-6078002092599021985.post-3944129201890371239</id><published>2011-07-02T23:29:00.001-07:00</published><updated>2011-07-02T23:30:49.722-07:00</updated><title type='text'>serach index in flex</title><content type='html'>private function removeBracket(strNo:String):Number&lt;br /&gt;  {&lt;br /&gt;   var reg:RegExp = new RegExp("[\(]","i");&lt;br /&gt;   var int_no:int = strNo.search(reg);&lt;br /&gt;   var retNo:Number;&lt;br /&gt;   if (int_no &gt;= 0)&lt;br /&gt;   {&lt;br /&gt;   strNo = strNo.replace("(","");&lt;br /&gt;   strNo = strNo.replace(")","");&lt;br /&gt;   strNo = strNo.replace(",","");&lt;br /&gt;   retNo = Number(strNo);&lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;   // do some thing&lt;br /&gt;   }&lt;br /&gt;   return retNo;&lt;br /&gt;  }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6078002092599021985-3944129201890371239?l=rwsflex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rwsflex.blogspot.com/feeds/3944129201890371239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rwsflex.blogspot.com/2011/07/serach-index-in-flex.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6078002092599021985/posts/default/3944129201890371239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6078002092599021985/posts/default/3944129201890371239'/><link rel='alternate' type='text/html' href='http://rwsflex.blogspot.com/2011/07/serach-index-in-flex.html' title='serach index in flex'/><author><name>Rajesh Yadav</name><uri>http://www.blogger.com/profile/02114518401726792927</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-6078002092599021985.post-891045563995836017</id><published>2009-07-21T08:32:00.000-07:00</published><updated>2009-07-21T08:57:41.974-07:00</updated><title type='text'>Best Links for Cairngorm Architecture</title><content type='html'>To learn cairngorm architecture these links are very helpful please read ones.&lt;br /&gt;Very easy Step 1&lt;br /&gt;http://www.davidtucker.net/2007/10/07/getting-started-with-cairngorm-%E2%80%93-part-1/&lt;br /&gt;Very easy Step 2&lt;br /&gt;http://www.davidtucker.net/2007/10/18/cairngorm-part-2/&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_VtP9QW6W7N8/SmXlJ6X0jZI/AAAAAAAAADY/M5OZAFyi7bc/s1600-h/cairngormdiagram.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 180px;" src="http://3.bp.blogspot.com/_VtP9QW6W7N8/SmXlJ6X0jZI/AAAAAAAAADY/M5OZAFyi7bc/s320/cairngormdiagram.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5360942889905196434" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6078002092599021985-891045563995836017?l=rwsflex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rwsflex.blogspot.com/feeds/891045563995836017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rwsflex.blogspot.com/2009/07/best-links-for-cairngorm-architecture.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6078002092599021985/posts/default/891045563995836017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6078002092599021985/posts/default/891045563995836017'/><link rel='alternate' type='text/html' href='http://rwsflex.blogspot.com/2009/07/best-links-for-cairngorm-architecture.html' title='Best Links for Cairngorm Architecture'/><author><name>Rajesh Yadav</name><uri>http://www.blogger.com/profile/02114518401726792927</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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_VtP9QW6W7N8/SmXlJ6X0jZI/AAAAAAAAADY/M5OZAFyi7bc/s72-c/cairngormdiagram.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6078002092599021985.post-8830836691856453792</id><published>2009-06-14T11:28:00.000-07:00</published><updated>2009-06-14T11:34:45.411-07:00</updated><title type='text'>CAIRNGORM</title><content type='html'>Introduction to cairngorm:-Cairngorm is based on the MVC Model. It is specifically designed to facilitate complex state and data synchronization between the client and the server, while keeping the programming of the View layer detached from the data implementation.&lt;br /&gt;The role of the View layer in a Cairngorm application is to throw events and bind to data stored in the Model. Components on the View can bind to Value Objects or other properties in the Model (data) layer.&lt;br /&gt;In a Cairngorm Model, related data are stored in Value Objects (VOs), while simple variables can be stored as direct properties of the ModelLocator class. A static reference to the ModelLocator singleton instance is used by the View layers to locate the required data.&lt;br /&gt;The Controller is the most sophisticated part of the Cairngorm architecture. The Controller layer is implemented as a singleton Front Controller. The FrontController instance, which receives every View-generated event, dispatches the events to the assigned Command class based on the event's declared type.&lt;br /&gt;The Command class then processes the event by running the Command class' execute() method, which is an ICommand interface method. The event object may include additional data Like VO objects. The execute() method can update the central Model, as well as invoke a Service class which typically involves communication with a remote server. The IResponder interface, which is also implemented by the Command class, includes onResult and onFault methods to handle responses returned from the invoked remote service.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6078002092599021985-8830836691856453792?l=rwsflex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rwsflex.blogspot.com/feeds/8830836691856453792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rwsflex.blogspot.com/2009/06/cairngorm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6078002092599021985/posts/default/8830836691856453792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6078002092599021985/posts/default/8830836691856453792'/><link rel='alternate' type='text/html' href='http://rwsflex.blogspot.com/2009/06/cairngorm.html' title='CAIRNGORM'/><author><name>Rajesh Yadav</name><uri>http://www.blogger.com/profile/02114518401726792927</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>
