<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Flexed</title>
	<atom:link href="http://flexed.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexed.wordpress.com</link>
	<description>Flex 2, Actionscript 3.0</description>
	<pubDate>Tue, 15 Jul 2008 04:46:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>Connecting people</title>
		<link>http://flexed.wordpress.com/2008/07/15/connecting-people/</link>
		<comments>http://flexed.wordpress.com/2008/07/15/connecting-people/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 04:46:43 +0000</pubDate>
		<dc:creator>udayms</dc:creator>
		
		<category><![CDATA[Generic]]></category>

		<category><![CDATA[extreme networks]]></category>

		<category><![CDATA[job]]></category>

		<category><![CDATA[nokia]]></category>

		<category><![CDATA[ovi]]></category>

		<category><![CDATA[relocation]]></category>

		<guid isPermaLink="false">http://flexed.wordpress.com/?p=127</guid>
		<description><![CDATA[I haven&#8217;t posted anything here for a &#8216;long&#8217; time now. The last few months have been really hectic with all the sudden changes at work and in personal life. Still trying to catchup with whatever has been happening around me and slowly regaining control over life (both professional and personal).

So…. Here I am… in Bangalore. [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div class="entry">I haven&#8217;t posted anything here for a &#8216;long&#8217; time now. The last few months have been really hectic with all the sudden changes <a title="Leaving Extreme Networks" href="http://udayms.wordpress.com/2008/07/04/leaving-extreme-networks/" target="_blank">at work</a> and <a title="Goodbye mom..." href="http://udayms.wordpress.com/2008/06/10/goodbye-mom/" target="_blank">in personal life</a>. Still trying to catchup with whatever has been happening around me and slowly regaining control over life (both professional and personal).</p>
<div class="snap_preview">
<p>So…. Here I am… in Bangalore. I quit from <a href="http://www.extremenetworks.com" target="_blank">Extreme Networks</a> and am joining <a href="http://www.nokia.com" target="_blank">Nokia</a> R&amp;D facility in Maratahalli Ring Rd, Bangalore. I shall be working with the Ux team at Nokia in the Software &amp; Services division.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://www.nokia.com/NOKIA_COM_1/Home/Landing_page_2007/noflash_img/nokia_connecting_people.png" alt="Nokia" width="114" height="41" /></p>
<p>One of the first projects I am going to be engaged in is <a title="Ovi BETA!" href="http://beta.ovi.com/">Ovi.com</a>. It’s an exciting new concept from Nokia. I shall be blogging in detail about Ovi sometime soon.</p>
<p>In the last few months, I have received hundreds of mails from readers. Some had written in just to show their support and appreciation. Some had mailed me with technical questions and some with job offers. And because of the personal reasons mentioned <a href="http://udayms.wordpress.com/2008/06/10/goodbye-mom/" target="_blank">here</a> and <a href="http://udayms.wordpress.com/2008/07/04/leaving-extreme-networks/" target="_blank">here</a>, I was unable to respond to any of those mails. I really apologize for that. I am just in the process of catching up with the hundreds of unread mails in my inbox. I shall respond to your mails asap.</p>
<p>Once again&#8230; Thanks for all the mails and queries. Keep reading and mailing&#8230;</p></div>
</div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexed.wordpress.com/127/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexed.wordpress.com/127/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexed.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexed.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexed.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexed.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexed.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexed.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexed.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexed.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexed.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexed.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexed.wordpress.com&blog=275836&post=127&subd=flexed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexed.wordpress.com/2008/07/15/connecting-people/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/udayms-128.jpg" medium="image">
			<media:title type="html">udayms</media:title>
		</media:content>

		<media:content url="http://www.nokia.com/NOKIA_COM_1/Home/Landing_page_2007/noflash_img/nokia_connecting_people.png" medium="image">
			<media:title type="html">Nokia</media:title>
		</media:content>
	</item>
		<item>
		<title>Adobe Flex Intro PPT posted</title>
		<link>http://flexed.wordpress.com/2008/03/11/adobe-flex-intro-ppt-posted/</link>
		<comments>http://flexed.wordpress.com/2008/03/11/adobe-flex-intro-ppt-posted/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 19:18:05 +0000</pubDate>
		<dc:creator>udayms</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[Adobe]]></category>

		<category><![CDATA[Apollo]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Generic]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<category><![CDATA[adobe air]]></category>

		<category><![CDATA[adobe flex]]></category>

		<category><![CDATA[air]]></category>

		<category><![CDATA[ccfug]]></category>

		<category><![CDATA[cfug]]></category>

		<category><![CDATA[chennai]]></category>

		<category><![CDATA[cold fusion]]></category>

		<category><![CDATA[presentation]]></category>

		<category><![CDATA[user group]]></category>

		<guid isPermaLink="false">http://flexed.wordpress.com/?p=125</guid>
		<description><![CDATA[A couple of weekends ago, I did a presentation for The Chennai Cold Fusion User Group (CCFUG Homepage). Am posting the ppt here. The presentation covered the basics - intro to RIAs, intro to Adobe Flex, a couple of examples and a little bit about Adobe AIR. Check it out&#8230; if you have nothing else [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A couple of weekends ago, I did a presentation for <a href="http://akbarn.wordpress.com/2008/02/20/join-chennai-coldfusion-user-group-for-this-cant-miss-meeting/" target="_blank">The Chennai Cold Fusion User Group</a> (<a href="http://www.cfugind.com/" target="_blank">CCFUG Homepage</a>). Am posting the ppt here. The presentation covered the basics - intro to RIAs, intro to Adobe Flex, a couple of examples and a little bit about Adobe AIR. Check it out&#8230; if you have nothing else to do <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> &#8230; The audience were cold fusion developers who were new to Adobe Flex and Adoe AIR. I touched the basics and then walked them through some code examples of Flex and Air.</p>
<p>Check out some <a href="http://picasaweb.google.com/Akbarsaitn.Cfmx/ChennaiAbodeCFUGMeetingFlex3AIR1Event" target="_blank">snaps from the event</a> and check out this <a href="http://akbarn.wordpress.com/2008/03/03/flex-3air-1-event-at-the-chennai-coldfusion-user-group/" target="_blank">post by Akbar</a> after the event. You may also want to check out the CCFUG homepage at <a href="http://www.cfugind.com" target="_blank">http://www.cfugind.com</a>.</p>
<p align="center"><object type='application/x-shockwave-flash' wmode='transparent' data='https://s3.amazonaws.com:443/slideshare/ssplayer.swf?id=302041&#038;doc=adobe-flex-1205255795335622-3' width='425' height='348'><param name='movie' value='https://s3.amazonaws.com:443/slideshare/ssplayer.swf?id=302041&#038;doc=adobe-flex-1205255795335622-3' /></object></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexed.wordpress.com/125/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexed.wordpress.com/125/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexed.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexed.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexed.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexed.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexed.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexed.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexed.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexed.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexed.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexed.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexed.wordpress.com&blog=275836&post=125&subd=flexed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexed.wordpress.com/2008/03/11/adobe-flex-intro-ppt-posted/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/udayms-128.jpg" medium="image">
			<media:title type="html">udayms</media:title>
		</media:content>
	</item>
		<item>
		<title>CForm SWC</title>
		<link>http://flexed.wordpress.com/2008/02/11/cform-swc/</link>
		<comments>http://flexed.wordpress.com/2008/02/11/cform-swc/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 19:34:07 +0000</pubDate>
		<dc:creator>udayms</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Flex Components]]></category>

		<category><![CDATA[GUI]]></category>

		<category><![CDATA[Generic]]></category>

		<category><![CDATA[SWC]]></category>

		<category><![CDATA[Scriptlet]]></category>

		<category><![CDATA[cform]]></category>

		<category><![CDATA[component]]></category>

		<category><![CDATA[download]]></category>

		<category><![CDATA[lib]]></category>

		<guid isPermaLink="false">http://flexed.wordpress.com/?p=120</guid>
		<description><![CDATA[Lately I have been getting a lot of mails about using CForm. So, I kind of wrapped up the whole thing into a SWC and here it is. So all you need to do is download this and add this to the Lib of your project. For the source code, you can still check it [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Lately I have been getting a lot of mails about using CForm. So, I kind of wrapped up the whole thing into a SWC and here it is. So all you need to do is download this and add this to the Lib of your project. For the source code, you can still check it out of SVN. But, to just use the CForm, you really do not need the source-code, you can just use this swc component. <a href="http://flexedtoolkit.googlecode.com/files/cform.swc" title="Download CForm SWC" target="_blank">Click here to download the component</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexed.wordpress.com/120/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexed.wordpress.com/120/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexed.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexed.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexed.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexed.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexed.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexed.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexed.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexed.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexed.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexed.wordpress.com/120/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexed.wordpress.com&blog=275836&post=120&subd=flexed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexed.wordpress.com/2008/02/11/cform-swc/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/udayms-128.jpg" medium="image">
			<media:title type="html">udayms</media:title>
		</media:content>
	</item>
		<item>
		<title>[Component] CForm v1.0</title>
		<link>http://flexed.wordpress.com/2008/01/02/component-cform-v10/</link>
		<comments>http://flexed.wordpress.com/2008/01/02/component-cform-v10/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 10:09:52 +0000</pubDate>
		<dc:creator>udayms</dc:creator>
		
		<category><![CDATA[Adobe]]></category>

		<category><![CDATA[Demo]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Flex Components]]></category>

		<category><![CDATA[GUI]]></category>

		<category><![CDATA[Scriptlet]]></category>

		<category><![CDATA[actionccript]]></category>

		<category><![CDATA[as]]></category>

		<category><![CDATA[cform]]></category>

		<category><![CDATA[component]]></category>

		<category><![CDATA[example]]></category>

		<category><![CDATA[forms]]></category>

		<category><![CDATA[mxml]]></category>

		<category><![CDATA[script]]></category>

		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://flexed.wordpress.com/2008/01/02/component-cform-v10/</guid>
		<description><![CDATA[CForm is all about creating data entry screens. This component allows developers to create standardized forms/CRUD screens in their applications. The CForm component is a Data Entry component that can be very useful if -

you are building business applications with many data entry/view screens
you are working with a lot of developers. each handling separate screens/modules
you [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>CForm is all about creating data entry screens. This component allows developers to create standardized forms/CRUD screens in their applications. The CForm component is a Data Entry component that can be very useful if -</p>
<ol>
<li>you are building business applications with many data entry/view screens</li>
<li>you are working with a lot of developers. each handling separate screens/modules</li>
<li>you wish all your screens to have the standard look &amp; feel across the application</li>
<li>you wish to avoid different developers/designers designing their own UI/UX paradigms for their specific screens</li>
</ol>
<p align="center"><a href="http://www.udayms.com/flex/cform/cform.html" title="CForm Demo" target="_blank"><img src="http://www.udayms.com/flex/cform/cform_srcshot.jpg" align="absmiddle" border="0" height="284" width="400" /></a></p>
<p>Let me try to explain this in a very simplified manner. CForm reads XML file to create user entry forms. To implement CForm, the following steps are involved.</p>
<ul>
<li>Developer creates XML file for each screen. The XML will contain the list of fields, controls to be used etc.</li>
<li>CForm is called in an MXML.</li>
<li>Now, the developer can use many of CForm&#8217;s exposed methods to access/manipulate data in the CForm.</li>
</ul>
<p>The <a href="http://www.udayms.com/flex/cform/cform.html" title="CForm Demo" target="_blank">Demo</a> walks you through a few use cases of how CForm can be used in real world. There are clear instructions on each example in the demo. For a detailed documentation on the XML part of this component, <a href="http://www.udayms.com/site/node/7" title="XML Documentation of CForm" target="_blank">check out here</a> and for the AS and MXML angle <a href="http://flexed.wordpress.com/2008/01/02/component-cform-v10/#more-117" title="AS &amp; MXML Implementation Guide" target="_blank">check out below</a>. The source code will also be made available shortly in a 2 or 3 weeks. As of now, if you need the source code you will have to check it out from the SVN repository at <a href="http://flexedtoolkit.googlecode.com/" title="https://flexedtoolkit.googlecode.com/">http://flexedtoolkit.googlecode.com/</a>. If you like this component and would be willing to extend a helping hand, send me a mail <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>If you have any questions/suggestions after viewing the demo, leave a comment on this page!!</p>
<p>**Update: Compiled SWC now available for download.</p>
<p align="right">[ <a href="http://flexedtoolkit.googlecode.com/files/cform.swc" title="Download CForm SWC" target="_blank">SWC</a> | <a href="http://www.udayms.com/flex/cform/cform.html" title="CForm v1.0 Demo" target="_blank">Demo</a> | <a href="http://www.udayms.com/site/node/7" title="XML Documentation of CForm" target="_blank">XML Documentation</a> | <a href="http://www.udayms.com/flex/cform/srcview/index.html" title="Source of Example only" target="_blank">Source of Example</a> ]</p>
<p><span id="more-117"></span><br />
<b><font color="#008000">CForm Properties</font></b></p>
<table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr bgcolor="#ffffcc">
<td valign="top" width="184"><b><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="2">Property</font></b></td>
<td valign="top" width="117"><b><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="2">Access</font></b></td>
<td bgcolor="#ffffcc" valign="top" width="698"><b><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="2">Description</font></b></td>
</tr>
<tr>
<td valign="top" width="184"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">widgetsFile</font></td>
<td valign="top" width="117"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Read-Write</font></td>
<td valign="top" width="698"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">The path of the xml file which contains the details of the controls</font></td>
</tr>
</table>
<h4><b><font color="#008000">CForm Methods</font></b></h4>
<table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr bgcolor="#ffffcc">
<td valign="top" width="308"><b><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="2">Method</font></b></td>
<td valign="top" width="698"><b><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="2">Description</font></b></td>
</tr>
<tr>
<td valign="top" width="308"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">clearContainer()</font></td>
<td valign="top" width="698"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Clears the container of CForm. i.e. Removes the CForm from the container.</font></td>
</tr>
<tr>
<td valign="top" width="308"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">setData(obj:Object)</font></td>
<td valign="top" width="698"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Sets the values of obj to the CForm fields.</font></td>
</tr>
<tr>
<td valign="top" width="308"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">getWidget(widgetId:String)</font></td>
<td valign="top" width="698"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Returns the renderer of the widget in field.</font></td>
</tr>
<tr>
<td valign="top" width="308"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">createCFormFromXML(xml:XML)</font></td>
<td valign="top" width="698"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">creates CForm on the fly using the XML passed</font></td>
</tr>
</table>
<h4><b><font color="#008000">Events</font></b></h4>
<table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr bgcolor="#ffffcc">
<td valign="top" width="230"><b><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="2">Event</font></b></td>
<td valign="top" width="523"><b><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="2">Description</font></b></td>
</tr>
<tr>
<td valign="top" width="230"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">CFormLoadComplete</font></td>
<td valign="top" width="523"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Fired when CForm completes loading all the fields</font></td>
</tr>
</table>
<h4><b><font color="#008000">Internals</font></b></h4>
<p>CForm internally uses extended versions of the standard flex widgets. The extended widgets implements a common single interface - CFormItemRenderer.The extended widgets have some preset properties like height, width, stylename etc. These constant values are picked from DefaultConfig class.</p>
<h4><b><font color="#008000">Using CForm</font></b></h4>
<p><u>MXML code</u></p>
<p><code>&lt;flexed:CForm id=”cfrm”widgetsFile=”controls.xml” cFormValidation=”validateForm”verticalCenter=”0″ verticalScrollPolicy=”auto”<br />
horizontalCenter=”0″ horizontalScrollPolicy=”off”<br />
width=”100%” height=”100%”/&gt;</code></p>
<p><u>AS Code</u></p>
<h6><font color="#333399"><b>To set xml path and load CForm</b></font></h6>
<p><code>str = “examples/cform/xmls/controls.xml”;<br />
cfrm.widgetsFile = str;cfrm.init();</code></p>
<h6><font color="#333399"><b>To get data from CForm</b></font></h6>
<p><code>obj = cfrm.getData(); // to get only modified  values<br />
obj = cfrm.getData(false); // to get all values</code></p>
<h6><font color="#333399"><b>To reset CForm</b></font></h6>
<p><code>cfrm.resetCForm();</code></p>
<h6><font color="#333399"><b>To set data to CForm</b></font></h6>
<p><code>var oDataToSet:Object = new Object();<br />
oDataToSet.fname = “udayms”;<br />
oDataToSet.age = 27;<br />
oDataToSet.gender = “male”;<br />
cfrm.setData(oDataToSet);</code></p>
<h6><font color="#333399"><b>To access one field in the CForm and access properties of the widget</b></font></h6>
<p><code>cfrm.getWidget(“fname”).getUIComponent().addEventListener();</code></p>
<h6><font color="#333399"><b>To create CForm on the fly using dynamic XML</b></font></h6>
<p><code>cfrm.createCFormFromXML(new XML());</code></p>
<h6><font color="#333399"><b>To Validate CForm using custom validation</b></font></h6>
<p><code>// custom validation function<br />
private function validateForm(id:String,<br />
value:Object, values:Object):ValidationResult{<br />
var result:ValidationResult =  new ValidationResult(false);<br />
if(id == “txtCoName”){<br />
if(value == “” || value == null) result = new ValidationResult(true,null,“”,<br />
“You HAVE to enter a company name!”);<br />
}<br />
return result; }<br />
// do this to actually validate the<br />
// CForm. Internally it<br />
// will use validateForm() method.<br />
cfrm.validateCForm();</code></p>
<p>I guess this covers most of the usecases. Anyway check out the demo. That should give pretty much a clear idea of what is possible with this component.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexed.wordpress.com/117/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexed.wordpress.com/117/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexed.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexed.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexed.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexed.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexed.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexed.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexed.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexed.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexed.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexed.wordpress.com/117/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexed.wordpress.com&blog=275836&post=117&subd=flexed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexed.wordpress.com/2008/01/02/component-cform-v10/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/udayms-128.jpg" medium="image">
			<media:title type="html">udayms</media:title>
		</media:content>

		<media:content url="http://www.udayms.com/flex/cform/cform_srcshot.jpg" medium="image" />
	</item>
		<item>
		<title>Happy New Year!!!</title>
		<link>http://flexed.wordpress.com/2008/01/02/happy-new-year/</link>
		<comments>http://flexed.wordpress.com/2008/01/02/happy-new-year/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 10:07:39 +0000</pubDate>
		<dc:creator>udayms</dc:creator>
		
		<category><![CDATA[Others]]></category>

		<category><![CDATA[new year wishes]]></category>

		<guid isPermaLink="false">http://flexed.wordpress.com/2008/01/02/happy-new-year/</guid>
		<description><![CDATA[So, after a couple of months of hibernation, am slowly trying to catch up on my blogging activities &#8230;. Here&#8217;s wishing you all a very Happy and Prosperous 2008. Looking forward to another year of pleasant surprises from Adobe, Apple, M$, Google, Yahoo and all the other folks who actually make technology work for the [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So, after a couple of months of hibernation, am slowly trying to catch up on my blogging activities &#8230;. Here&#8217;s wishing you all a very <b>Happy and Prosperous 2008</b>. Looking forward to another year of pleasant surprises from Adobe, Apple, M$, Google, Yahoo and all the other folks who actually make technology work for the rest of us!!! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I have finally managed to wrap up work on a component that has been pending for a long time. A component for developers to create data entry/crud forms easily. Check out my separate post on this!!!</p>
<p>So, once again&#8230; Cheers! And let&#8217;s hope this year is filled with less destruction and more peace than last year&#8230;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexed.wordpress.com/119/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexed.wordpress.com/119/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexed.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexed.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexed.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexed.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexed.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexed.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexed.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexed.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexed.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexed.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexed.wordpress.com&blog=275836&post=119&subd=flexed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexed.wordpress.com/2008/01/02/happy-new-year/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/udayms-128.jpg" medium="image">
			<media:title type="html">udayms</media:title>
		</media:content>
	</item>
		<item>
		<title>Buzzword</title>
		<link>http://flexed.wordpress.com/2007/10/12/buzzword/</link>
		<comments>http://flexed.wordpress.com/2007/10/12/buzzword/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 16:14:50 +0000</pubDate>
		<dc:creator>udayms</dc:creator>
		
		<category><![CDATA[Demo]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://flexed.wordpress.com/2007/10/12/buzzword/</guid>
		<description><![CDATA[I guess this is already old news by now. But, I just recently happened to check it out. I came to know about such an application when my Manager suggested it. After trying it out, I have one word - AWESOME!!!!
Ok. What I am talking about here is a full fledged online document application (Yeah! [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I guess this is already old news by now. But, I just recently happened to check it out. I came to know about such an application when my Manager suggested it. After trying it out, I have one word - AWESOME!!!!</p>
<p>Ok. What I am talking about here is a full fledged online document application (Yeah! Just like Writely, Google Docs) developed in FLEX!!!! I was amazed at not only how feature rich the app was. I was stumbled totally because many of the stuff they have achieved. They have done stuff which I never thought was possible using Flex.</p>
<p>For me, Buzzword definitely takes Flex to the next level. It has been developed by the folks at <a href="http://www.virtub.com" title="http://www.virtub.com" target="_blank">Virtual Ubiquity</a>. It says on their site -</p>
<blockquote><p>Buzzword, the first real word processor for the web, is a breakthrough in collaborative authoring for documents that matter. Many online pundits agree with us.</p></blockquote>
<p>And Guess what? <a href="http://www.adobe.com/aboutadobe/pressroom/pressreleases/200709/100107VirtualUbiquity.html" title="Adobe - Buzzword Acquisition" target="_blank">Adobe is acquiring</a> them. You can register and try it out yourself <a href="http://preview.getbuzzword.com/?s=true" title="Signup" target="_blank">here</a>. Check out the screenshots here. Click on thm to see a larger view.</p>
<p align="center"><a href="http://www.virtub.com/screenshots/images/screenshot1.jpg" title="Click here for enlarged view" target="_blank"><img src="http://www.virtub.com/screenshots/images/screenshot1Thumb.jpg" align="absmiddle" border="0" height="92" width="122" /></a> <a href="http://www.virtub.com/screenshots/images/screenshot2.jpg" title="Click here for enlarged view" target="_blank"><img src="http://www.virtub.com/screenshots/images/screenshot2Thumb.jpg" align="absmiddle" border="0" height="92" width="122" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexed.wordpress.com/116/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexed.wordpress.com/116/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexed.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexed.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexed.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexed.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexed.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexed.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexed.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexed.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexed.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexed.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexed.wordpress.com&blog=275836&post=116&subd=flexed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexed.wordpress.com/2007/10/12/buzzword/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/udayms-128.jpg" medium="image">
			<media:title type="html">udayms</media:title>
		</media:content>

		<media:content url="http://www.virtub.com/screenshots/images/screenshot1Thumb.jpg" medium="image" />

		<media:content url="http://www.virtub.com/screenshots/images/screenshot2Thumb.jpg" medium="image" />
	</item>
		<item>
		<title>CustomGrid v1.2</title>
		<link>http://flexed.wordpress.com/2007/08/15/customgrid-v12/</link>
		<comments>http://flexed.wordpress.com/2007/08/15/customgrid-v12/#comments</comments>
		<pubDate>Wed, 15 Aug 2007 08:24:22 +0000</pubDate>
		<dc:creator>udayms</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[Adobe]]></category>

		<category><![CDATA[Demo]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Flex Components]]></category>

		<category><![CDATA[GUI]]></category>

		<category><![CDATA[Scriptlet]]></category>

		<guid isPermaLink="false">http://flexed.wordpress.com/2007/08/15/customgrid-v12/</guid>
		<description><![CDATA[I am releasing the v1.2 of CGrid. It&#8217;s been in drafts for a long while now.This time, a few more basic niceties have been added to the CGrid.  

Export to Excel (Copy selected rows or entire grid to clipboard and paste in excel)
User can select columns to view and width of the columns etc. [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I am releasing the v1.2 of CGrid. It&#8217;s been in drafts for a long while now.This time, a few more basic niceties have been added to the CGrid. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ol>
<li>Export to Excel (Copy selected rows or entire grid to clipboard and paste in excel)</li>
<li>User can select columns to view and width of the columns etc. This setting for each grid in the application is remembered across sessions.(For this to work properly, you will have to ensure that you always specify a distinct ID for for each grid in your application.) This feature is very useful, if you are fetching a lot of columns to display but are not sure whether all the users would be interested in all the columns. Now, the user can choose to see columns of his/her choice and that choice is remembered across sessions.</li>
<li>Fixed the sorting logic in the column sort.</li>
<li>The CGrid can now take in custom itemRenderer from the caller.</li>
</ol>
<p>Check it out&#8230; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> For more details about what CGrid is all about, check out this <a href="http://flexed.wordpress.com/2006/12/26/customgrid-v10-or-searchgrid-v20/" title="CustomGrid v1.2" target="_blank">post</a>.</p>
<p>It&#8217;s been a long time since I updated the grid component. Hey, for that matter&#8230; It&#8217;s been a log while since I last posted here. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Been quiet a bit busy lately. Anyway, am almost back. This month is also going to be a bit hectic. But, I hope to post regularly from September onwards.</p>
<p>Note: Thanks to all who downloaded CGrid v1.0 and used them in their projects. It really feels nice to see that the component has served some good purpose. The CGrid component is individually responsible for keeping my blog alive and  bringing in readers even though I haven&#8217;t posted anything new for the last couple of months. So, this component is kind of the &#8216;old man&#8217; of this blog. Anyway, Lemme thank all visitors for checking it out. Keep downloading. Keep leaving comments <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> &#8230;.</p>
<p align="right"> [ <a href="http://udayms.com/flex/cgrid/v1.2/UseCGrid.html" title="CGrid Demo" target="_blank">Demo</a> | <a href="http://udayms.com/flex/cgrid/v1.2/srcview/index.html" title="CGrid Source" target="_blank">Source</a> | <a href="http://udayms.com/flex/cgrid/sample_printout.pdf" title="Sample Printout of the CGrid" target="_blank">Sample Printout</a> ]</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexed.wordpress.com/110/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexed.wordpress.com/110/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexed.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexed.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexed.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexed.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexed.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexed.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexed.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexed.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexed.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexed.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexed.wordpress.com&blog=275836&post=110&subd=flexed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexed.wordpress.com/2007/08/15/customgrid-v12/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/udayms-128.jpg" medium="image">
			<media:title type="html">udayms</media:title>
		</media:content>
	</item>
		<item>
		<title>Flexedtoolkit Google project</title>
		<link>http://flexed.wordpress.com/2007/06/06/flexedtoolkit-google-project/</link>
		<comments>http://flexed.wordpress.com/2007/06/06/flexedtoolkit-google-project/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 12:37:10 +0000</pubDate>
		<dc:creator>udayms</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[Adobe]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Flex Components]]></category>

		<category><![CDATA[GUI]]></category>

		<category><![CDATA[Generic]]></category>

		<category><![CDATA[Scriptlet]]></category>

		<guid isPermaLink="false">http://flexed.wordpress.com/2007/06/06/flexedtoolkit-google-project/</guid>
		<description><![CDATA[WANTED: Developers who can contribute to this open source initiative  
I have created a google project to put in some of the stuff that we have been working on and releasing through this blog. Some of the stuff that you can already download from Flexedtoolkit are -

Autorefresher
Client Idle Timeout
Custom Alerts
Custom Grid

I am working on [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>WANTED: Developers who can contribute to this open source initiative <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I have created a google project to put in some of the stuff that we have been working on and releasing through this blog. Some of the stuff that you can already download from Flexedtoolkit are -</p>
<ol>
<li>Autorefresher</li>
<li>Client Idle Timeout</li>
<li>Custom Alerts</li>
<li>Custom Grid</li>
</ol>
<p>I am working on a small component - CForms. The idea is to have a generic UI rendering engine that will create forms from an XML file. This is particularly useful in serious business applications where you have a lot of user entry screens. So, if the developer needs to have a screen, they just include something like -</p>
<p align="center"> &lt;widgets:CForm controlsFile=”controls.xml” id=”VLAN”/&gt;</p>
<p>Everything else - Styles, layout, look and feel etc. will be handled by the CForm component as per instructions in the abc.xml&#8230; Getting a picture?</p>
<p>We initially did this as part of my project requirements at work. And it was a life-saver. Now, I would like to extend it beyond what it is today. I want to make it more generic and feature rich so that others can leverage on it.</p>
<p>The project homepage is <a href="http://code.google.com/p/flexedtoolkit/" target="_blank">http://code.google.com/p/flexedtoolkit</a>. If you are interested in joining the project, do leave a comment. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Really hope some of you folks would find time to work on this.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexed.wordpress.com/114/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexed.wordpress.com/114/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexed.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexed.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexed.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexed.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexed.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexed.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexed.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexed.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexed.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexed.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexed.wordpress.com&blog=275836&post=114&subd=flexed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexed.wordpress.com/2007/06/06/flexedtoolkit-google-project/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/udayms-128.jpg" medium="image">
			<media:title type="html">udayms</media:title>
		</media:content>
	</item>
		<item>
		<title>Visiting Bangalore</title>
		<link>http://flexed.wordpress.com/2007/05/18/visiting-bangalore/</link>
		<comments>http://flexed.wordpress.com/2007/05/18/visiting-bangalore/#comments</comments>
		<pubDate>Fri, 18 May 2007 14:38:58 +0000</pubDate>
		<dc:creator>udayms</dc:creator>
		
		<category><![CDATA[Generic]]></category>

		<guid isPermaLink="false">http://flexed.wordpress.com/2007/05/18/visiting-bangalore/</guid>
		<description><![CDATA[Readers: I will be in Bangalore till the 25th of this month. Would love to meet some of you folks&#8230; If you have time, do leave a comment and maybe we can catch up for tea or something&#8230;.. 
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Readers: I will be in Bangalore till the 25th of this month. Would love to meet some of you folks&#8230; If you have time, do leave a comment and maybe we can catch up for tea or something&#8230;.. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexed.wordpress.com/115/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexed.wordpress.com/115/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexed.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexed.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexed.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexed.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexed.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexed.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexed.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexed.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexed.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexed.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexed.wordpress.com&blog=275836&post=115&subd=flexed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexed.wordpress.com/2007/05/18/visiting-bangalore/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/udayms-128.jpg" medium="image">
			<media:title type="html">udayms</media:title>
		</media:content>
	</item>
		<item>
		<title>Autorefresher Component</title>
		<link>http://flexed.wordpress.com/2007/04/24/autorefresher-component/</link>
		<comments>http://flexed.wordpress.com/2007/04/24/autorefresher-component/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 14:00:33 +0000</pubDate>
		<dc:creator>udayms</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[Demo]]></category>

		<category><![CDATA[Flex]]></category>

		<category><![CDATA[Flex Components]]></category>

		<category><![CDATA[Scriptlet]]></category>

		<guid isPermaLink="false">http://flexed.wordpress.com/2007/04/24/autorefresher-component/</guid>
		<description><![CDATA[If you have been working on applications which serve highly dynamic data on the screen, you are most likely to have had to rely on the &#8220;polling&#8221; mechanism to get updated data from the back-end. We had similar requirement in our project and we created a tiny component using Flex&#8217;s Timer Class to fire a [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you have been working on applications which serve highly dynamic data on the screen, you are most likely to have had to rely on the &#8220;<em>polling</em>&#8221; mechanism to get updated data from the back-end. We had similar requirement in our project and we created a tiny component using Flex&#8217;s Timer Class to fire a specific method at set frequencies.</p>
<p>And as usual, we didn&#8217;t to go around writing code all across the application to do this. The component we created can take in a function as an attribute. This function could be anything. It could be one that fires an SQL query and updates an ArrayCollection, or it could be one that sends out a Feed request or whatever! <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> It&#8217;s pretty easy to use the <strong>AutoRefresher</strong>. All you have to do is add the AutoRefresher to your view -</p>
<p><code>&lt;flexed:AutoRefresher id="exampleAutoRefresh" delay="5000" refreshFunction="FunctionToBeFiredPeriodically" /&gt;</code></p>
<p>The view then, refreshes every x milliseconds specified for <em>delay</em>. The default is 15000 milliseconds or 15 seconds. In the init method of your view, before starting the autorefresher, set the owner of the refresher to the parent like this-</p>
<p><code>exampleAutoRefresh.owner = this;<br />
exampleAutoRefresh.start();<br />
</code></p>
<p>Setting the owner is to make sure that our refresher stops and starts based on the views visibility. In most cases, Polling mechanism ends up being really costly on the back-end. Especially if you are dealing with multi-tiered architecture and trying to talk to a web server, database server etc over the network. And its very much possible, that multiple views in your application might be required to autorefresh periodically. If you are polling in all the screens whether they are required or not, you are most likely to end up crashing the back-end infrastructure. In order to address this problem and minimize the load on the back-end, we built in a mechanism into the refresher by which it stops if the view is visible and starts automatically when the view is visible. This is why we are setting the <em>owner</em> in the init method. So, if you have autorefresher running on view A and B; and the user is viewing view B, then only view B is refreshing and when the user moves to view A; view B stops refreshing and view A starts.</p>
<p>Special thanks to Easwar for making this idea work! This component might come in handy for many <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . It sure saved a lot of effort for us <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . Check it out.</p>
<p>Note: The demo is very basic. All it does is gets the time every 3 seconds and updates the label in the view.</p>
<p align="right">[ <a href="http://www.udayms.com/flex/autoref/autorefresher.html" title="Autorefresher Demo" target="_blank">Demo</a> | <a href="http://www.udayms.com/flex/autoref/srcview/index.html" title="Autorefresher Source" target="_blank">Source</a> | <a href="http://www.udayms.com/flex/autoref/docs/" title="Autorefresher ASDocs" target="_blank">ASDocs</a> ]</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexed.wordpress.com/113/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexed.wordpress.com/113/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexed.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexed.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexed.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexed.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexed.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexed.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexed.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexed.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexed.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexed.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexed.wordpress.com&blog=275836&post=113&subd=flexed&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexed.wordpress.com/2007/04/24/autorefresher-component/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/udayms-128.jpg" medium="image">
			<media:title type="html">udayms</media:title>
		</media:content>
	</item>
	</channel>
</rss>