<?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>FlexOut &#187; innovation</title>
	<atom:link href="http://flex.exposedout.net/category/innovation/feed/" rel="self" type="application/rss+xml" />
	<link>http://flex.exposedout.net</link>
	<description>i am an itemrendrer in the making!</description>
	<lastBuildDate>Fri, 13 May 2011 10:05:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Export to Jpeg in flex.</title>
		<link>http://flex.exposedout.net/2011/05/13/export-to-jpeg-in-flex-using-screen-capture/</link>
		<comments>http://flex.exposedout.net/2011/05/13/export-to-jpeg-in-flex-using-screen-capture/#comments</comments>
		<pubDate>Fri, 13 May 2011 05:05:47 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[innovation]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[bitmapData]]></category>
		<category><![CDATA[ByteArray]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[JPEGencoder]]></category>
		<category><![CDATA[save]]></category>
		<category><![CDATA[save file]]></category>
		<category><![CDATA[save jpeg]]></category>

		<guid isPermaLink="false">http://flex.exposedout.net/?p=343</guid>
		<description><![CDATA[There is always a need to way to export some sort of a report out to the user, previously I used the classical use of a serverside script in Java or PHP to enable user to take a screenshot of the component or the entire application. Since the flash player 10 provides the feature to [...]


Related posts:<ol><li><a href='http://flex.exposedout.net/2011/05/05/save-file-as-pdf-in-flex/' rel='bookmark' title='Permanent Link: Save file as PDF in flex'>Save file as PDF in flex</a></li>
<li><a href='http://flex.exposedout.net/2009/05/25/caching-images-in-flex/' rel='bookmark' title='Permanent Link: Caching images in Flex'>Caching images in Flex</a></li>
<li><a href='http://flex.exposedout.net/2008/09/09/uploads-file-via-httphttps/' rel='bookmark' title='Permanent Link: uploads file via http/https'>uploads file via http/https</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There is always a need to way to export some sort of a report out to the user, previously I used  the classical use of a serverside script in Java or PHP  to enable user to take a screenshot of the component or the entire application. Since the flash player 10 provides the feature to save local file using file reference I am going to exploit that feature and export some BITMAP content into a Jpeg file.</p>
<p>following is the code for taking a snapshot of the component on some event/action</p>
<p>Prerequisite for making this components work.</p>
<ul>
<li>Build project in <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4">flex 4.0 + SDK</a></li>
<li>Use flash player 10 and above (MUST)</li>
<li>Include <a href="https://github.com/mikechambers/as3corelib">Corelib.swc</a> for JPEGEncoder to work</li>
</ul>
<div class="codecolorer-container actionscript mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">//file reference declaration to enable user to save file to local system.</span><br />
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> file:FileReference = <span style="color: #000000; font-weight: bold;">new</span> FileReference<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
<br />
<span style="color: #808080; font-style: italic;">//function can be called on button click or context menu click or any other interaction</span><br />
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> captureIt<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> df : DateFormatter = <span style="color: #000000; font-weight: bold;">new</span> DateFormatter<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
df.<span style="color: #006600;">formatString</span> = <span style="color: #ff0000;">&quot;DD-MM-YY HH:NN&quot;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> bitmapData:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">width</span>, <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">height</span><span style="color: #66cc66;">&#41;</span>;<br />
bitmapData.<span style="color: #006600;">draw</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>,<span style="color: #000000; font-weight: bold;">new</span> Matrix<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> bitmap : Bitmap = <span style="color: #000000; font-weight: bold;">new</span> Bitmap<span style="color: #66cc66;">&#40;</span>bitmapData<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> jpg:JPEGEncoder = <span style="color: #000000; font-weight: bold;">new</span> JPEGEncoder<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> ba:ByteArray = jpg.<span style="color: #006600;">encode</span><span style="color: #66cc66;">&#40;</span>bitmapData<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> dt : <span style="color: #0066CC;">Date</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Date</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> dtStr : <span style="color: #0066CC;">String</span> = df.<span style="color: #006600;">format</span><span style="color: #66cc66;">&#40;</span>dt.<span style="color: #0066CC;">time</span><span style="color: #66cc66;">&#41;</span>;<br />
file.<span style="color: #006600;">save</span><span style="color: #66cc66;">&#40;</span>ba,<span style="color: #ff0000;">'Screenshot at'</span>+dt.<span style="color: #0066CC;">time</span>+<span style="color: #ff0000;">'.jpg'</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p><strong>Explanation</strong></p>
<p><strong>BitmapData ()</strong><br />
The BitmapData () function takes a height and width of the component which has to be converted to image, i have used <em>this </em> you can very well use any UIComponent or DisplayObject.</p>
<p><strong>bitmapData.draw(this,new Matrix ());</strong><br />
This is the place where the actual conversion takes place (where the bitmap data is drawn), Again you can use any UIComponent or DisplayObject in <em>this </em>place.</p>
<p><strong>Bitmap Encoding: jpg.encode (bitmapData);</strong><br />
The component or screen area to be captured  is converted into BITMAP data so that it could be encoded into Jpeg file format for saving it, you can also use a PNG or GIF encoder in this place as per your requirement. At this place the Bitmap data is encoded into a JPEG file format.</p>
<p><strong>var ba : ByteArray = jpg.encode (bitmapData);</strong><br />
Since BITMAP data cannot be saved directly to the local system we first convert it into a ByteArray.</p>
<p><strong>Date : dt.time</strong><br />
The date  is only used to give each screenshot a unique timestamps so that each time the function is called a new file is saved.</p>
<p><strong>file.save ( ba,&#8217;Screenshot at&#8217;+dt.time+&#8217;.jpg&#8217; );</strong><br />
Now we pass the byte array  to the file reference and also pass the name  by which the file has to be saved, as shown in the function above.</p>
<p>Vollia you can now save JPEG file to your local  file system via Flex without using any third party Serverside script to do so. No more HTTP request and error handling to take care of.</p>
<p><strong>GO MAKE THE WORLD A BETTER PLACE<br />
Say no to paper, No need to print  graphs when you can save them to jpeg </strong></p>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2011/05/05/save-file-as-pdf-in-flex/' rel='bookmark' title='Permanent Link: Save file as PDF in flex'>Save file as PDF in flex</a></li>
<li><a href='http://flex.exposedout.net/2009/05/25/caching-images-in-flex/' rel='bookmark' title='Permanent Link: Caching images in Flex'>Caching images in Flex</a></li>
<li><a href='http://flex.exposedout.net/2008/09/09/uploads-file-via-httphttps/' rel='bookmark' title='Permanent Link: uploads file via http/https'>uploads file via http/https</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2011/05/13/export-to-jpeg-in-flex-using-screen-capture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Power of Flash Catalyst</title>
		<link>http://flex.exposedout.net/2011/05/12/power-of-flash-catalyst/</link>
		<comments>http://flex.exposedout.net/2011/05/12/power-of-flash-catalyst/#comments</comments>
		<pubDate>Thu, 12 May 2011 04:58:50 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[innovation]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[catalyst]]></category>
		<category><![CDATA[codeless]]></category>
		<category><![CDATA[Flash Catalyst]]></category>
		<category><![CDATA[Flex and the Facebook ActionScript 3 API]]></category>
		<category><![CDATA[Flex Builder]]></category>
		<category><![CDATA[illustrator]]></category>

		<guid isPermaLink="false">http://flex.exposedout.net/?p=331</guid>
		<description><![CDATA[Here is Kevin Lynch’s Keynote from the Web 2.0 conference where he shows how to build a full application using Illustrator, Flash Catalyst, Flex Builder, Flex and the Facebook ActionScript 3 API. Related posts:Flex Builder renamed Flash &#8220;like&#8221; charts for iPad and iPhone FrameworkQuest 2008 : Introduction


Related posts:<ol><li><a href='http://flex.exposedout.net/2009/05/20/flex-builder-renamed/' rel='bookmark' title='Permanent Link: Flex Builder renamed'>Flex Builder renamed</a></li>
<li><a href='http://flex.exposedout.net/2011/04/11/flash-charts-on-ipad-and-iphone/' rel='bookmark' title='Permanent Link: Flash &#8220;like&#8221; charts for iPad and iPhone'>Flash &#8220;like&#8221; charts for iPad and iPhone</a></li>
<li><a href='http://flex.exposedout.net/2009/01/16/frameworkquest-2008-introduction/' rel='bookmark' title='Permanent Link: FrameworkQuest 2008 : Introduction'>FrameworkQuest 2008 : Introduction</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Here is Kevin Lynch’s Keynote from the Web 2.0 conference where he shows how to build a full application using Illustrator, Flash Catalyst, Flex Builder, Flex and the Facebook ActionScript 3 API.</p>
<p><object width="560" height="349"><param name="movie" value="http://www.youtube.com/v/tNAde32pWT0?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/tNAde32pWT0?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" width="560" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2009/05/20/flex-builder-renamed/' rel='bookmark' title='Permanent Link: Flex Builder renamed'>Flex Builder renamed</a></li>
<li><a href='http://flex.exposedout.net/2011/04/11/flash-charts-on-ipad-and-iphone/' rel='bookmark' title='Permanent Link: Flash &#8220;like&#8221; charts for iPad and iPhone'>Flash &#8220;like&#8221; charts for iPad and iPhone</a></li>
<li><a href='http://flex.exposedout.net/2009/01/16/frameworkquest-2008-introduction/' rel='bookmark' title='Permanent Link: FrameworkQuest 2008 : Introduction'>FrameworkQuest 2008 : Introduction</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2011/05/12/power-of-flash-catalyst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash &#8220;like&#8221; charts for iPad and iPhone</title>
		<link>http://flex.exposedout.net/2011/04/11/flash-charts-on-ipad-and-iphone/</link>
		<comments>http://flex.exposedout.net/2011/04/11/flash-charts-on-ipad-and-iphone/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 06:15:53 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[innovation]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[amcharts]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://flex.exposedout.net/?p=309</guid>
		<description><![CDATA[We already know the huge gap thats been created by Apple not adopting &#8220;Flash&#8221; to run on there device. The end users and developer pay the toll as they have to adapt to this scenario and live with the limitation of either viewing their content in different visual component OR come up with a solution [...]


Related posts:<ol><li><a href='http://flex.exposedout.net/2011/05/12/power-of-flash-catalyst/' rel='bookmark' title='Permanent Link: Power of Flash Catalyst'>Power of Flash Catalyst</a></li>
<li><a href='http://flex.exposedout.net/2008/12/04/multi-language-support-in-flex/' rel='bookmark' title='Permanent Link: Multi Language-Support in flex'>Multi Language-Support in flex</a></li>
<li><a href='http://flex.exposedout.net/2011/05/13/export-to-jpeg-in-flex-using-screen-capture/' rel='bookmark' title='Permanent Link: Export to Jpeg in flex.'>Export to Jpeg in flex.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>We already know the huge gap thats been created by Apple not adopting &#8220;Flash&#8221; to run on there device. The end users and developer pay the toll as they have to adapt to this scenario and live with the limitation of either  viewing their content  in different visual component OR come up with a solution that works both for  Flash enabled device and non Flash device like  apple iPhone and iPad.</p>
<p>I am happy to announce that Folks at <strong>Amcharts </strong>are doing an awesome task for bridging the gap between flash users and non flash users by providing  a charing component  for  both kinds of devices.</p>
<p>Now you can seamlessly view  our data on both the device by using their FLASH/FLEX component or their JAVASCRIPT charting components.</p>
<p><strong>How can this be done?<br />
<em>Use the HTML wrapper to decide if the device  can handle flash or not. (can be done even with JS) Once you know what device you are running you can  choose which  kind of component to load. This gives you a seamless solution for your Business and YES it will support the normal flashbased platform as well as NON flash platforms</em></strong></p>
<p><em> </em></p>
<p><em>Important to note: you will have to follow the conventional MVC model to achieve. Keep VIEW and DATA separate.</em></p>
<ul>
<li>Find the latest version of the Javascript library at : <a title="AmCharts Javascript Charting Component" href="http://www.amcharts.com/javascript/" target="_blank">www.amcharts.com/javascript</a></li>
<li>You can also find the reference document at :  <a title="javascript_reference" href="http://www.amcharts.com/docs/v.2/bundle/javascript_reference" target="_blank">Javascript reference</a></li>
<li>For other AmCharts component  visit: <a title="AmCharts Charting/mapping Components" href="http://www.amcharts.com" target="_blank">www.amcharts.com</a></li>
</ul>
<p><a title="AmCharts Charting/mapping Components" href="http://www.amcharts.com" target="_blank"></a></p>
<p>&nbsp;</p>
<p>Thanks for coming up with this solution. You guys at AmCharts ROCK!!</p>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2011/05/12/power-of-flash-catalyst/' rel='bookmark' title='Permanent Link: Power of Flash Catalyst'>Power of Flash Catalyst</a></li>
<li><a href='http://flex.exposedout.net/2008/12/04/multi-language-support-in-flex/' rel='bookmark' title='Permanent Link: Multi Language-Support in flex'>Multi Language-Support in flex</a></li>
<li><a href='http://flex.exposedout.net/2011/05/13/export-to-jpeg-in-flex-using-screen-capture/' rel='bookmark' title='Permanent Link: Export to Jpeg in flex.'>Export to Jpeg in flex.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2011/04/11/flash-charts-on-ipad-and-iphone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>UI patterns</title>
		<link>http://flex.exposedout.net/2010/06/04/ui-patterns/</link>
		<comments>http://flex.exposedout.net/2010/06/04/ui-patterns/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 11:26:35 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[innovation]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[components]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://flex.exposedout.net/?p=279</guid>
		<description><![CDATA[User needs: these are the UI patterns that the user uses as a tool to understand and interact with the data that has to be conveyed to the user. In short we can say these are the gadget which helps the user to understand raw data by converting them into something meaningful.  I have categorized the UI patterns [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><strong>User needs</strong>: these are the UI patterns that the user uses as a tool to understand and interact with the data that has to be conveyed to the user. In short we can say these are the gadget which helps the user to understand raw data by converting them into something meaningful.  I have categorized the UI patterns in the order of &#8220;user needs and actions&#8221;.</p>
<p><strong>Navigating around</strong><br />
· Accordion<br />
· Headerless Menu<br />
· Breadcrumbs<br />
· Directory Navigation<br />
· Doormat Navigation<br />
· Double Tab Navigation<br />
· Faceted Navigation<br />
· Fly-out Menu<br />
· Home Link<br />
· Icon Menu<br />
· Main Navigation<br />
· Map Navigator<br />
· Meta Navigation</p>
<p style="text-align: right;">Download detailed document: <a href="http://www.exposedout.net/download/UI_Patterns.doc">here</a><br />
<span id="more-279"></span></p>
<p style="text-align: left;">· Minesweeping<br />
· Panning Navigator<br />
· Overlay Menu<br />
· Repeated Menu<br />
· Retractable Menu<br />
· Scrolling Menu<br />
· Shortcut Box<br />
· Split Navigation<br />
· Teaser Menu<br />
· To-the-top Link<br />
· Trail Menu<br />
· Navigation Tree</p>
<p><strong>Basic interactions<br />
</strong>· Action Button<br />
· Guided Tour<br />
· Paging<br />
· Pulldown Button<br />
· Slideshow<br />
· Stepping<br />
· Wizard</p>
<p><strong>Searching<br />
</strong>· Advanced Search<br />
· Autocomplete<br />
· Frequently Asked Questions (FAQ)<br />
· Help Wizard<br />
· Search Box<br />
· Search Area<br />
· Search Results<br />
· Search Tips<br />
· Site Index<br />
· Site Map<br />
· Footer Sitemap<br />
· Tag Cloud<br />
· Topic Pages</p>
<p><strong>Dealing with data</strong><br />
· Carrousel<br />
· Table Filter<br />
· Collapsible Panels<br />
· Details On Demand<br />
· Collector<br />
· Inplace replacement<br />
· List Builder<br />
· List Entry View<br />
· Overview by Detail<br />
· Parts Selector<br />
· Tabs<br />
· Table Sorter<br />
· Thumbnail<br />
· View</p>
<p><strong>Personalizing</strong><br />
· Customizable Window<br />
· Login<br />
· Registration</p>
<p><strong>Shopping<br />
</strong>· Booking<br />
· Product Comparison<br />
· Product Advisor<br />
· Product Configurator<br />
· Purchase Process<br />
· Shopping Cart<br />
· Store Locator<br />
· Testimonials<br />
· Virtual Product Display</p>
<p><strong>Making choices</strong><br />
· Country Selector<br />
· Date Selector<br />
· Language Selector<br />
· Poll<br />
· Rating</p>
<p>Giving input<br />
· Comment Box<br />
· Constraint Input<br />
· Form</p>
<p><strong>Miscellaneous</strong><br />
· Footer Bar<br />
· Hotlist<br />
· News Box<br />
· News Ticker<br />
· Send-a-Friend Link</p>
<p><strong>Application needs</strong>: Patterns that help the application, or you the designer, communicate better with the user</p>
<p><strong>Drawing attention</strong><br />
· Captcha<br />
· Center Stage<br />
· Color Coded Section<br />
· Premium Content Lock<br />
· Grid-based Layout<br />
· Liquid Layout<br />
· Outgoing Links<br />
· Alternating Row Colors</p>
<p><strong>Feedback</strong><br />
· Input Error Message<br />
· Processing Page</p>
<p><strong>Simplifying interaction</strong><br />
· Enlarged Click area<br />
· Font Enlarger</p>
<p>Download detailed document: <a href="http://www.exposedout.net/download/UI_Patterns.doc">here</a></p>
<p>source : http://www.welie.com</p>
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2010/06/04/ui-patterns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inspectable : metatag that makes your code fool proof</title>
		<link>http://flex.exposedout.net/2010/05/10/inspectable-metatag-that-makes-your-code-fool-proof/</link>
		<comments>http://flex.exposedout.net/2010/05/10/inspectable-metatag-that-makes-your-code-fool-proof/#comments</comments>
		<pubDate>Mon, 10 May 2010 09:31:45 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[innovation]]></category>
		<category><![CDATA[code completion]]></category>
		<category><![CDATA[Inspectable]]></category>
		<category><![CDATA[metatags]]></category>

		<guid isPermaLink="false">http://flex.exposedout.net/?p=268</guid>
		<description><![CDATA[If you are building a custom components which will be used by other developers &#60;mxml&#62; style  wont it be cool for them to see the  bindable properties in a popup selectable values (i.e. true/false) via code completion in Flex Builder. Plus it could  also to show in the Properties Panel in design view and the [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>If you are building a custom components which will be used by other developers &lt;mxml&gt; style  wont it be cool for them to see the  bindable properties in a popup selectable values (i.e.  true/false) via code completion in Flex Builder. Plus it could  also to show in the  Properties Panel in design view and the teammate has the ability to choose a property value.</p>
<p>in short making your component FOOOL proof  ;). Well then &#8220;Inspectable&#8221; is your best friend.</p>
<p>Usage:</p>
<div class="codecolorer-container actionscript mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #66cc66;">&#91;</span>Inspectable<span style="color: #66cc66;">&#40;</span> defaultValue=<span style="color: #000000; font-weight: bold;">false</span>,verbose=<span style="color: #cc66cc;">1</span>, category=<span style="color: #ff0000;">&quot;Other&quot;</span>, enumeration=<span style="color: #ff0000;">&quot;true,false&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span><br />
<span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span> <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> aintThisCool : <span style="color: #0066CC;">Boolean</span>;</div></td></tr></tbody></table></div>
<p>If your like what you have read and want to learn more  follow the link:<a title="Adobe Livedocs" href="http://livedocs.adobe.com/flex/3/html/help.html?content=metadata_3.html" target="_blank">Flex Metatags</a></p>
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />
<input id="gwProxy" type="hidden" />
<input id="jsProxy" onclick="jsCall();" type="hidden" />


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2010/05/10/inspectable-metatag-that-makes-your-code-fool-proof/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encrypt in Flex and Decrypt in ColdFusion</title>
		<link>http://flex.exposedout.net/2009/09/25/encrypt-in-flex-and-decrypt-in-coldfusion/</link>
		<comments>http://flex.exposedout.net/2009/09/25/encrypt-in-flex-and-decrypt-in-coldfusion/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 07:56:45 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[innovation]]></category>
		<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[Decrypt]]></category>
		<category><![CDATA[Encrypt]]></category>

		<guid isPermaLink="false">http://flex.exposedout.net/?p=233</guid>
		<description><![CDATA[A thread has been going on for a bit today over on the Flex Coders list. How do you encrypt data in Flex, pass it to ColdFusion and then decrypt it? I struggled with this very same question quite a while ago; and sort of came up with an answer after a lot of trial [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><a href="http://tech.groups.yahoo.com/group/flexcoders/message/95663">A thread</a> has been going on for a bit today over on the <a href="http://tech.groups.yahoo.com/group/flexcoders">Flex Coders</a> list.  How do you encrypt data in Flex, pass it to ColdFusion and then decrypt it?  I struggled with this very same question quite a while ago; and sort of came up with an answer after a lot of trial and error.  This post is me finally documenting my answer.</p>
<p>First, there are two open source AS3 libraries that you can use to deal with data encryption in Flex: <a href="http://ascrypt3.riaforge.com">ASCrypt3</a> and <a href="http://crypto.hurlant.com/">Crypto</a>.  ASCrypt3 was my  attempt at converting an ActionScript 2 library to an ActionScript 3 code base.  I understand that Crypto was created from the ground up to make use of AS3 enhancements to make things more performance.  Both libraries offer plenty of ways to encrypt, or decrypt data in Flex.</p>
<p>I&#8217;m going to assume that we want to use <a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard">AES (Rijndael)</a> to encrypt the data in Flex before sending it to ColdFusion.  Unfortunately, I was never able to get the ASCrypt3 code base working with CF properly.  People have told me they&#8217;ve used it successfully for Java.  I have used Crypto to successfully pass encrypted data back and forth between ColdFusion and Flex, though.</p>
<p>First we need to create our key, and specify some settings.  Load the <a href="http://crypto.hurlant.com/demo/">Crypto demo</a>.  Click &#8220;Secret Key&#8221; from the TabNavigator and set these steps:</p>
<ol>
<li><strong>Encryption</strong>: AES</li>
<li><strong>Mode</strong>: ECB</li>
<li><strong>Padding</strong>PKCS#5</li>
<li><strong>Prepend IV to Cipher</strong>: Leave Unchecked</li>
<li><strong>Key Format:</strong>Hex</li>
<li><strong>Plain Text</strong>: Text</li>
<li><strong>Cipher Text</strong>: Hex</li>
</ol>
<p>Once your settings are set, click &#8220;Generate 128 bits&#8221; to generate a key.  If you create your own key using alternate means, that&#8217;s fie but you&#8217;ll have to be sure it is 128 bits and in Hex format; or things may go awry when switching between systems.</p>
<p>Type your text: &#8220;This is a Test&#8221;, then click the Encrypt button.  Doing this on the fly, my key was &#8220;e1787cfc32d25355f267c53837c6062e&#8221; and the cipher text was &#8220;182f2031903e0a63ed77881b1561954c&#8221;.</p>
<p>I&#8217;ll assume you know of some manner to get this data from Flex to ColdFusion (or, really any other backed you desire).</p>
<p>On the ColdFusion side, there is a great <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=e546373d&amp;sliceId=1">knowledge base article</a> about dealing with encryption, so you might want to start there.  To decrypt, we are dealing with a handful of built in functions:</p>
<ul>
<li><a href="http://www.cfquickdocs.com/?getDoc=BinaryDecode"><strong>BinaryDecode</strong></a>:  Converts a string to a binary object.  We use it to turn our Hex Key into binary format.</li>
<li><a href="http://www.cfquickdocs.com/?getDoc=ToBase64"><strong>ToBase64</strong></a>: This calculates a string representation of a binary object.  We are using BinaryDecode to turn our Binary String Hex Key into a string.</li>
<li><a href="http://www.cfquickdocs.com/?getDoc=Decrypt"><strong>Decrypt</strong></a>: This one performs the decryption algorithm</li>
</ul>
<p>The actual code will be something like his:</p>
<div class="code"><span style="color:#000000"><br />
<span style="color:#990033">&lt;cfset<span style="color:#000000"> HexKey = <span style="color:#006600">&#8220;e1787cfc32d25355f267c53837c6062e&#8221;</span></span>&gt;</span><br />
<span style="color:#990033">&lt;cfset<span style="color:#000000"> myKey = ToBase64(BinaryDecode(HexKey, <span style="color:#006600">&#8220;Hex&#8221;</span>))</span>&gt;</span><br />
<span style="color:#990033">&lt;cfset<span style="color:#000000"> Encrypted = <span style="color:#006600">&#8220;182f2031903e0a63ed77881b1561954c&#8221;</span></span>&gt;</span><br />
<span style="color:#990033">&lt;Cfset<span style="color:#000000"> Decrypted = Decrypt( Encrypted, MyKey, &#8216;AES&#8217;,'Hex&#8217;)</span>&gt;</span><br />
</span></div>
<p>First we take the HexKey, binaryDecode it and Base64 it.  Then we feed those values along with our encrypted text into the Decrypt function.  Finally, output the results:</p>
<div class="code"><span style="color:#000000"><br />
<span style="color:#990033">&lt;cfoutput&gt;</span><br />
#decrypted#<br />
<span style="color:#990033">&lt;/cfoutput&gt;</span><br />
</span></div>
<p>There is a lot of conversion going on, but I&#8217;m not quite sure why it&#8217;s needed.  I was able to get this working using Crypto and CF, but never ASCrypt3 and CF.  I suspect the problem was in the encoding of the key + result; but never had a chance to explore it in further depth.  Can anyone explain?</p>
<p>Your mission, if you choose to accept it is to write the CF code to encrypt data before sending it to Flex.  It shouldn&#8217;t take long.</p>
<p>If you need do something &#8216;real world&#8217; you&#8217;ll have to download Crypto and figure out how to call the encryption algorithms within Flex. :-)</p>
<p>read original <a href="http://www.jeffryhouser.com/index.cfm/2007/12/6/Encrypt-in-Flex-and-Decrypt-in-ColdFusion" target="_blank">here</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2009/09/25/encrypt-in-flex-and-decrypt-in-coldfusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamically add remove columns in a datagrid</title>
		<link>http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/</link>
		<comments>http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 14:46:33 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[innovation]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[add columns]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[dynamic columns]]></category>

		<guid isPermaLink="false">http://guavus.wordpress.com/?p=25</guid>
		<description><![CDATA[I had a hard time figuring out how to add remove columns  dynamically from a datagrid and after lots of code iterations I have reached a workable scenario. Right now the code is fairly easy to understand and can be enhanced to a gr8 deal, I still need to add other important functionalities. Close headerrenderer for [...]


Related posts:<ol><li><a href='http://flex.exposedout.net/2008/08/18/copy-functionality-in-datagrid/' rel='bookmark' title='Permanent Link: Copy functionality in DataGrid'>Copy functionality in DataGrid</a></li>
<li><a href='http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/' rel='bookmark' title='Permanent Link: Filter datagrid using a hslider'>Filter datagrid using a hslider</a></li>
<li><a href='http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/' rel='bookmark' title='Permanent Link: Flex dataGrid default column sort'>Flex dataGrid default column sort</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I had a hard time figuring out how to add remove columns  dynamically from a datagrid and after lots of code iterations I have reached a workable scenario. Right now the code is fairly easy to understand and can be enhanced to a gr8 deal,</p>
<p>I still need to add other important functionalities.</p>
<ul>
<li>Close headerrenderer for each column</li>
<li>delete entire row functionality</li>
<li>user defined default state</li>
<li>and much more&#8230;</li>
</ul>
<p>Dint get the time to complete this post but someday i will surely post a complete working APP<br />
by that time check out the code  USE AND MODIFY AS PLEASED!!!</p>
<div class="codecolorer-container actionscript mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #66cc66;">&lt;</span> ?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span><br />
<span style="color: #66cc66;">&lt;</span>mx:application xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:hdividedbox <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> dividerRelease=<span style="color: #ff0000;">&quot;handleDivderRelease()&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:script<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span> <span style="color: #66cc66;">!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">CheckBox</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">ComboBox</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">dataGridClasses</span>.<span style="color: #006600;">DataGridColumn</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> counter : <span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> conDataProvider : <span style="color: #0066CC;">Array</span> =<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#123;</span>label : <span style="color: #ff0000;">&quot;col1&quot;</span>, <span style="color: #0066CC;">data</span> : <span style="color: #ff0000;">&quot;c1&quot;</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>label : <span style="color: #ff0000;">&quot;col2&quot;</span>, <span style="color: #0066CC;">data</span> : <span style="color: #ff0000;">&quot;c2&quot;</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>label : <span style="color: #ff0000;">&quot;col3&quot;</span>, <span style="color: #0066CC;">data</span> : <span style="color: #ff0000;">&quot;c3&quot;</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>label : <span style="color: #ff0000;">&quot;col4&quot;</span>, <span style="color: #0066CC;">data</span> : <span style="color: #ff0000;">&quot;c4&quot;</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>label : <span style="color: #ff0000;">&quot;col5&quot;</span>, <span style="color: #0066CC;">data</span> : <span style="color: #ff0000;">&quot;c5&quot;</span><span style="color: #66cc66;">&#125;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span>label : <span style="color: #ff0000;">&quot;col6&quot;</span>, <span style="color: #0066CC;">data</span> : <span style="color: #ff0000;">&quot;c6&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> hideShowColumns<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> actualColumns:<span style="color: #0066CC;">Array</span> = ResultGrid.<span style="color: #006600;">columns</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> actualSelectedColumns:<span style="color: #0066CC;">Array</span> = &nbsp;lstColumns.<span style="color: #006600;">selectedItems</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> dataGridColumn:DataGridColumn;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> sDataField:<span style="color: #0066CC;">String</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> sDataFieldCur:<span style="color: #0066CC;">String</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> columnVisible:<span style="color: #0066CC;">Boolean</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span>=<span style="color: #cc66cc;">0</span>;i<span style="color: #66cc66;">&lt;</span>actualColumns.<span style="color: #0066CC;">length</span>;i++<span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; columnVisible = <span style="color: #000000; font-weight: bold;">false</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataGridColumn = actualColumns<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sDataField = dataGridColumn.<span style="color: #006600;">dataField</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> j : <span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>; j <span style="color: #66cc66;">&lt;</span> actualSelectedColumns.<span style="color: #0066CC;">length</span>; j++<span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>actualSelectedColumns<span style="color: #66cc66;">&#91;</span>j<span style="color: #66cc66;">&#93;</span> == <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">continue</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sDataFieldCur = actualSelectedColumns<span style="color: #66cc66;">&#91;</span>j<span style="color: #66cc66;">&#93;</span>.<span style="color: #0066CC;">data</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>sDataFieldCur == sDataField<span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; columnVisible = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>columnVisible<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataGridColumn.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span> &nbsp;<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataGridColumn.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> selectAll<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstColumns.<span style="color: #006600;">selectedIndices</span>=<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">4</span>,<span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hideShowColumns<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> clearAll<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstColumns.<span style="color: #006600;">selectedIndices</span>=<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hideShowColumns<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> setDefault<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lstColumns.<span style="color: #006600;">selectedIndices</span>=<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hideShowColumns<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleDivderRelease<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>counter == <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; controlBox.<span style="color: #0066CC;">width</span> =<span style="color: #cc66cc;">0</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>counter == <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; controlBox.<span style="color: #0066CC;">width</span> =<span style="color: #cc66cc;">120</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; counter = <span style="color: #66cc66;">&#40;</span>counter +<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">%</span>2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>mx:script<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:vbox id=<span style="color: #ff0000;">&quot;controlBox&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;120&quot;</span> maxWidth=<span style="color: #ff0000;">&quot;120&quot;</span> &nbsp;verticalGap=<span style="color: #ff0000;">&quot;0&quot;</span> horizontalScrollPolicy=<span style="color: #ff0000;">&quot;off&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:label <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;Selected columns&quot;</span> fontWeight=<span style="color: #ff0000;">&quot;bold&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">list</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;120&quot;</span> id=<span style="color: #ff0000;">&quot;lstColumns&quot;</span> dataProvider=<span style="color: #ff0000;">&quot;{conDataProvider}&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;labelField=<span style="color: #ff0000;">&quot;label&quot;</span> <span style="color: #0066CC;">borderColor</span>=<span style="color: #ff0000;">&quot;#000000&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;allowMultipleSelection=<span style="color: #ff0000;">&quot;true&quot;</span> click=<span style="color: #ff0000;">&quot;hideShowColumns()&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;selectedIndices=<span style="color: #ff0000;">&quot;[0,1,2,3]&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:textarea <span style="color: #0066CC;">wordWrap</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #0066CC;">selectable</span>=<span style="color: #ff0000;">&quot;false&quot;</span> editable=<span style="color: #ff0000;">&quot;false&quot;</span> borderStyle=<span style="color: #ff0000;">&quot;none&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;For multiple selection use ctrl/shift keys&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;120&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:spacer <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;5&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">button</span> label=<span style="color: #ff0000;">&quot;Select All&quot;</span> &nbsp;<span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> click=<span style="color: #ff0000;">&quot;selectAll()&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">button</span> label=<span style="color: #ff0000;">&quot;Default&quot;</span> &nbsp;<span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> click=<span style="color: #ff0000;">&quot;setDefault()&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">button</span> label=<span style="color: #ff0000;">&quot;Clear All&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> click=<span style="color: #ff0000;">&quot;clearAll()&quot;</span><span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>mx:vbox<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:vbox <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagrid <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> id=<span style="color: #ff0000;">&quot;ResultGrid&quot;</span> selectedIndex=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #0066CC;">enabled</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #0066CC;">selectable</span>=<span style="color: #ff0000;">&quot;true&quot;</span> creationComplete=<span style="color: #ff0000;">&quot;init()&quot;</span><span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:columns<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagridcolumn headerText=<span style="color: #ff0000;">&quot;col1&quot;</span> dataField=<span style="color: #ff0000;">&quot;c1&quot;</span> <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagridcolumn headerText=<span style="color: #ff0000;">&quot;col2&quot;</span> dataField=<span style="color: #ff0000;">&quot;c2&quot;</span> <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagridcolumn headerText=<span style="color: #ff0000;">&quot;col3&quot;</span> dataField=<span style="color: #ff0000;">&quot;c3&quot;</span> <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagridcolumn headerText=<span style="color: #ff0000;">&quot;col4&quot;</span> dataField=<span style="color: #ff0000;">&quot;c4&quot;</span> <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagridcolumn headerText=<span style="color: #ff0000;">&quot;col5&quot;</span> dataField=<span style="color: #ff0000;">&quot;c5&quot;</span> <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;</span>mx:datagridcolumn headerText=<span style="color: #ff0000;">&quot;col6&quot;</span> dataField=<span style="color: #ff0000;">&quot;c6&quot;</span> <span style="color: #0066CC;">visible</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #66cc66;">/&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>mx:columns<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>mx:datagrid<span style="color: #66cc66;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&lt;/</span>mx:vbox<span style="color: #66cc66;">&gt;</span><br />
<span style="color: #66cc66;">&lt;/</span>mx:hdividedbox<span style="color: #66cc66;">&gt;</span><br />
<span style="color: #66cc66;">&lt;/</span>mx:application<span style="color: #66cc66;">&gt;</span></div></td></tr></tbody></table></div>
<p><a href="http://flex.exposedout.net/wp-content/uploads/2009/07/dynamic-grid.png"><img class="aligncenter size-full wp-image-371" title="dynamic grid" src="http://flex.exposedout.net/wp-content/uploads/2009/07/dynamic-grid.png" alt="" width="629" height="419" /></a></p>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2008/08/18/copy-functionality-in-datagrid/' rel='bookmark' title='Permanent Link: Copy functionality in DataGrid'>Copy functionality in DataGrid</a></li>
<li><a href='http://flex.exposedout.net/2009/01/22/filter-datagrid-using-slider/' rel='bookmark' title='Permanent Link: Filter datagrid using a hslider'>Filter datagrid using a hslider</a></li>
<li><a href='http://flex.exposedout.net/2008/10/15/flex-datagrid-default-column-sort/' rel='bookmark' title='Permanent Link: Flex dataGrid default column sort'>Flex dataGrid default column sort</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove &#8220;Flex Data Visualization Trial&#8221; using actionscript</title>
		<link>http://flex.exposedout.net/2009/05/20/remove-flex-data-visualization-trial-using-actionscript/</link>
		<comments>http://flex.exposedout.net/2009/05/20/remove-flex-data-visualization-trial-using-actionscript/#comments</comments>
		<pubDate>Wed, 20 May 2009 11:34:05 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[innovation]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[Flex Data Visualization Trial]]></category>
		<category><![CDATA[remove trial]]></category>
		<category><![CDATA[trial message]]></category>

		<guid isPermaLink="false">http://guavus.wordpress.com/?p=213</guid>
		<description><![CDATA[I did a small hack in the Flex charting code and removed the Trial message from the Charting component by writing 1 simple actionscript lines. what you need to do is in the creationcomplete of any charting component write the following code 123456789private function removeTrialMsg&#40;&#41;:void&#123;  &#160;         var arra : Array = new Array&#40;&#41;;    [...]


Related posts:<ol><li><a href='http://flex.exposedout.net/2007/10/10/data-visualization/' rel='bookmark' title='Permanent Link: Data visualization?'>Data visualization?</a></li>
<li><a href='http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/' rel='bookmark' title='Permanent Link: Dynamically add remove columns in a datagrid'>Dynamically add remove columns in a datagrid</a></li>
<li><a href='http://flex.exposedout.net/2011/04/11/flash-charts-on-ipad-and-iphone/' rel='bookmark' title='Permanent Link: Flash &#8220;like&#8221; charts for iPad and iPhone'>Flash &#8220;like&#8221; charts for iPad and iPhone</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I did a small hack in the Flex charting code and removed the Trial message from the Charting component by writing 1 simple actionscript lines.</p>
<p>what you need to do is in the creationcomplete of any charting component write the following code</p>
<div class="codecolorer-container actionscript mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> removeTrialMsg<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span> <br />
&nbsp;         <span style="color: #000000; font-weight: bold;">var</span> arra : <span style="color: #0066CC;">Array</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
            <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> =<span style="color: #cc66cc;">0</span>;i<span style="color: #66cc66;">&amp;</span>lt;<span style="color: #0066CC;">this</span>.<span style="color: #006600;">numChildren</span>;i++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
               arra.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">getChildAt</span><span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
            <span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">// the above 4 lines are just to check  what r the childs added</span><br />
<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">getChildAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">numChildren</span>-<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> as <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">htmlText</span> = <span style="color: #ff0000;">&quot; &quot;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p>we  tried to set visible false but that dint work we also tried to remove the textfield child alltogether  but that too dint work but finally it was the html text property of the textfield that gave way.</p>
<p>now you can also add your custom  trial message to your application :)</p>
<p>just replace the blank with your text for example:</p>
<div class="codecolorer-container actionscript mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> removeTrialMsg<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">getChildAt</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">numChildren</span>-<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> as <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">htmlText</span> = <span style="color: #ff0000;">&quot;this is TRIAL&quot;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p>But its better that you buy your own licence key for charting. The above example was basically for educational purpose. have fun :)</p>
<p><img class="aligncenter size-full wp-image-216" title="trial" src="http://guavus.files.wordpress.com/2009/05/trial.jpg" alt="trial" width="480" height="123" /></p>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2007/10/10/data-visualization/' rel='bookmark' title='Permanent Link: Data visualization?'>Data visualization?</a></li>
<li><a href='http://flex.exposedout.net/2009/07/10/dynamically-add-remove-columns-in-a-datagrid/' rel='bookmark' title='Permanent Link: Dynamically add remove columns in a datagrid'>Dynamically add remove columns in a datagrid</a></li>
<li><a href='http://flex.exposedout.net/2011/04/11/flash-charts-on-ipad-and-iphone/' rel='bookmark' title='Permanent Link: Flash &#8220;like&#8221; charts for iPad and iPhone'>Flash &#8220;like&#8221; charts for iPad and iPhone</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2009/05/20/remove-flex-data-visualization-trial-using-actionscript/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Flex Builder renamed</title>
		<link>http://flex.exposedout.net/2009/05/20/flex-builder-renamed/</link>
		<comments>http://flex.exposedout.net/2009/05/20/flex-builder-renamed/#comments</comments>
		<pubDate>Wed, 20 May 2009 09:36:41 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[innovation]]></category>

		<guid isPermaLink="false">http://guavus.wordpress.com/2009/05/20/flex-builder-renamed/</guid>
		<description><![CDATA[The upcoming version of the tool to build your flex applications is called Flash Builder! (formally known as Adobe Flex Builder). The flex framework will continue to be known as Flex. The naming is appropriate given the fact that every one who is building a Flex / Flash / AIR app today is building it [...]


Related posts:<ol><li><a href='http://flex.exposedout.net/2009/01/16/frameworkquest-2008-introduction/' rel='bookmark' title='Permanent Link: FrameworkQuest 2008 : Introduction'>FrameworkQuest 2008 : Introduction</a></li>
<li><a href='http://flex.exposedout.net/2011/05/12/power-of-flash-catalyst/' rel='bookmark' title='Permanent Link: Power of Flash Catalyst'>Power of Flash Catalyst</a></li>
<li><a href='http://flex.exposedout.net/2011/04/11/flash-charts-on-ipad-and-iphone/' rel='bookmark' title='Permanent Link: Flash &#8220;like&#8221; charts for iPad and iPhone'>Flash &#8220;like&#8221; charts for iPad and iPhone</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The upcoming version of the tool to build your flex applications is called Flash Builder! (formally known as Adobe Flex Builder). The flex framework will continue to be known as Flex. The naming is appropriate <strong>given the fact that every one who is building a Flex / Flash / AIR app today is building it on top of the “Adobe Flash Platform”</strong></p>
<p style="text-align:center;"><img class="aligncenter" title="Flash Builder Logo" src="http://sujitreddyg.files.wordpress.com/2009/05/flash_builder_logo.png?w=300&amp;h=299" alt="" width="300" height="299" />Welcome, Flash Builder!</p>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2009/01/16/frameworkquest-2008-introduction/' rel='bookmark' title='Permanent Link: FrameworkQuest 2008 : Introduction'>FrameworkQuest 2008 : Introduction</a></li>
<li><a href='http://flex.exposedout.net/2011/05/12/power-of-flash-catalyst/' rel='bookmark' title='Permanent Link: Power of Flash Catalyst'>Power of Flash Catalyst</a></li>
<li><a href='http://flex.exposedout.net/2011/04/11/flash-charts-on-ipad-and-iphone/' rel='bookmark' title='Permanent Link: Flash &#8220;like&#8221; charts for iPad and iPhone'>Flash &#8220;like&#8221; charts for iPad and iPhone</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2009/05/20/flex-builder-renamed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex Component Lifecycle</title>
		<link>http://flex.exposedout.net/2008/09/15/flex-component-lifecycle/</link>
		<comments>http://flex.exposedout.net/2008/09/15/flex-component-lifecycle/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 01:36:38 +0000</pubDate>
		<dc:creator>Vikram singh</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[innovation]]></category>
		<category><![CDATA[lifecycle]]></category>

		<guid isPermaLink="false">http://guavus.wordpress.com/?p=76</guid>
		<description><![CDATA[The lifecycle of component can be easily understood in few simple steps firstly you create a component holder, then create-children, set-sizes/properties and dispatch events. Following four methods plays a major role in component rendering. createChildren() commitProperties() measure() updateDisplayList() Here is what I found after doing some studies. The most of the following part is taken [...]


Related posts:<ol><li><a href='http://flex.exposedout.net/2010/03/10/flex-component-lifecycle-and-event-flow-explained/' rel='bookmark' title='Permanent Link: Flex component lifecycle and event flow explained'>Flex component lifecycle and event flow explained</a></li>
<li><a href='http://flex.exposedout.net/2008/09/16/event-propogation/' rel='bookmark' title='Permanent Link: Event Propogation'>Event Propogation</a></li>
<li><a href='http://flex.exposedout.net/2009/05/21/flex-bindable-tag/' rel='bookmark' title='Permanent Link: Flex &quot;Bindable&quot; tag'>Flex &quot;Bindable&quot; tag</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:10pt;font-family:Arial;color:#c0c0c0;">The lifecycle of component can be easily understood in few simple steps firstly you create a component holder, then create-children, set-sizes/properties and dispatch events. Following four methods plays a major role in component rendering.</span></p>
<ul>
<li><span style="font-size:10pt;font-family:Arial;color:#c0c0c0;">createChildren()</span></li>
<li><span style="font-size:10pt;font-family:Arial;color:#c0c0c0;">commitProperties()</span></li>
<li> <span style="font-size:10pt;font-family:Arial;color:#c0c0c0;">measure()</span></li>
<li><span style="font-size:10pt;font-family:Arial;color:#c0c0c0;">updateDisplayList()</span></li>
</ul>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial;color:#c0c0c0;">Here is what I found after doing some studies. The most of the following part is taken from Adobe flex help however what I am trying to do here is to elaborate it more by putting up some comments to each step to make it clearer.</span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:Arial;color:#c0c0c0;">Following steps are demonstrating the Button component life cycle</span></p>
<ul type="disc">
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;color:#c0c0c0;">Given if the component is going to be in a      container then the <strong><span style="font-family:Arial;">parent</span></strong> property of component will be referred to the container(</span><span style="color:#ff0000;"><em><span style="font-size:10pt;font-family:Arial;">DisplayObjectContainer</span></em></span><span style="font-size:10pt;font-family:Arial;color:#c0c0c0;"> type) </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;color:#c0c0c0;">Get the style settings of the component</span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;color:#c0c0c0;">Dispatches the preinitialize event on the      component</span><span style="font-size:10pt;font-family:Arial;color:silver;"><span style="color:#c0c0c0;">.</span> </span><em><span style="font-family:Arial;color:green;"><strong>//</strong> The preinitialize event(mx.events.FlexEvent) is triggered when the UIComponent is in a very raw stage and there is no children in existence at that time</span></em></li>
</ul>
<ul type="disc">
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Calls the component’s </span><span style="font-family:Arial;">createChildren()</span><span style="font-size:10pt;font-family:Arial;"> method</span><span style="font-family:Arial;">. </span><em><strong><span style="font-family:Arial;color:green;">// createChildren</span></strong></em><em><span style="font-family:Arial;color:green;"> is a protected method of UIComponent class which we need to override when we create a subclass of the UIComponent. Also from within an override of the createChildren() method, you call the addChild() method to add each child object. </span></em><em><span style="font-family:Arial;color:green;">You do not call this method directly. Flex calls the createChildren() method in response to the call to the addChild() method to add the component to its parent.</span></em></li>
</ul>
<ul type="disc">
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Calls the invalidateProperties(), invalidateSize(), and      invalidateDisplayList() methods to trigger later calls to the      commitProperties(), measure(), or updateDisplayList() methods during the      next render event. </span><em><strong><span style="font-family:Arial;color:green;">//invalidateProperties</span></strong></em><em><span style="font-family:Arial;color:green;">() marks a component so that its commitProperties() method gets called during a later screen update.</span><strong><span style="font-family:Arial;color:green;"> invalidateSize</span></strong></em><em><span style="font-family:Arial;color:green;"> () Marks a component so that its measure() method gets called during a later screen update. </span></em><em><strong><span style="font-family:Arial;color:green;">invalidateDisplayList</span></strong></em><em><span style="font-family:Arial;color:green;"> () Marks a component so that its updateDisplayList() method gets called during a later screen update. </span></em></li>
</ul>
<p class="MsoNormal" style="line-height:150%;margin:0 17.25pt .0001pt .5in;"><span style="font-size:10pt;line-height:150%;font-family:Arial;">The only exception to this rule is that Flex does not call the measure() method when the user sets the height and width of the component(it is the explicit hight and explicit width that the user can set for any component). </span></p>
<ul type="disc">
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Dispatches the initialize event on the component. At      this time, all of the component’s children are initialized, but the      component has not been sized or processed for layout. You can use this      event to perform additional processing of the component before it is laid      out.</span><em><strong><span style="font-family:Arial;color:green;">// Initizlize</span></strong></em><em><span style="font-family:Arial;color:green;"> event gets dispatched when the component has finished its construction and has all initialization properties set. </span></em><em><span style="font-family:Arial;color:green;">After the initialization phase, properties are processed, the component is measured, laid out, and drawn. After which the creationComplete event is dispatched.</span></em></li>
</ul>
<ul type="disc">
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Dispatches the childAdd event on the parent container.</span><span style="color:#99ccff;"><em><span style="font-family:Arial;">The childAdd event is dispatched when the addChild() or addChildAt() method is called. At the time when this event is sent, the child object has been initialized, but its width and height have not yet been calculated, and the child has not been drawn on the screen. If you want to be notified when the child has been fully initialized and rendered, then register as a listener for the child’s creationComplete event.</span></em></span></li>
</ul>
<ul type="disc">
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Dispatches the initialize event on the parent      container.</span><span style="color:#99ccff;"><em><span style="font-family:Arial;">Dispatched when the component has finished its construction and has all initialization properties set. After the initialization phase, properties are processed, the component is measured, laid out, and drawn, after which the </span></em><strong><em><span style="font-family:Arial;">creationComplete</span></em></strong><em><span style="font-family:Arial;"> event is dispatched.</span></em></span></li>
</ul>
<ul type="disc">
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">During the next render event, Flex performs the      following actions:</span><span style="font-family:Arial;"> </span>
<ul type="circle">
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Calls the component’s       commitProperties() method.</span><span style="font-family:Arial;"><em><span style="font-family:Arial;color:green;"><strong>//commitProperties()</strong> processes the properties set on the component. You do not call this       method directly. Flex calls the commitProperties() method when you use       the addChild() method to add a component to a container, or when you call       the <strong>invalidateProperties() </strong>method of the component. Calls to the       <strong>commitProperties() </strong>method occur before calls to the measure() method.       This lets you set property values that might be used by the measure()       method.</span></em></span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Calls the component’s       measure() method.</span><em><span style="font-family:Arial;color:green;"><strong>// </strong><em><span style="font-family:Arial;"><strong>Measure() </strong>calculates the default       size, and optionally the default minimum size, of the component. This is       an advanced method that you might override when creating a subclass of       UIComponent. </span></em></span></em><span style="font-family:Arial;"><br />
<em><span style="font-family:Arial;color:green;">The default       implementation of measure() sets measuredWidth, measuredHeight,       measuredMinWidth, and measuredMinHeight to 0. </span></em></span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Calls the component’s (<em><span style="font-family:Arial;">Adobe help mention this method is in       UIComponent where as it is in container class</span></em>) container’s       layoutChrome() method<span style="color:#333399;"><em>.</em></span></span><span style="color:#99ccff;"><a name="210487"><em><span style="font-family:Arial;"><em><span style="font-family:Arial;">The </span></em></span></em></a><em><span style="font-family:Arial;">Container class, and some       subclasses of the Container class, use the layoutChrome() method to       define the border area around the container. </span></em></span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Calls the component’s       updateDisplayList() method. </span><a name="210535"></a><span style="font-family:Arial;"><em><span style="font-family:Arial;color:green;"><strong>//updateDisplayList()</strong> method sizes and positions the children of your component based on all       previous property and style settings, and draws any skins or graphic       elements that the component uses. The parent container for the component       determines the size of the component itself. </span></em></span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Dispatches the updateComplete       event on the component.</span><em><span style="font-family:Arial;color:green;"><br />
<em><span style="font-family:Arial;">Dispatched when an object has had its       <strong>commitProperties(), measure(), and updateDisplayList() </strong>methods called (if       needed).</span></em><br />
<em><span style="font-family:Arial;">This is the last opportunity to alter       the component before it is displayed. All properties have been committed       and the component has been measured and layed out. </span></em></span></em></li>
</ul>
</li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Flex dispatches additional render events if the      commitProperties(), measure(), or updateDisplayList() methods call the      invalidateProperties(), invalidateSize(), or invalidateDisplayList()      methods. </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">After the last render event occurs, Flex performs the      following actions: </span>
<ul type="circle">
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Makes the component visible by       setting the visible property to true. </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Dispatches the       creationComplete event on the component. The component is sized and       processed for layout. This event is only dispatched once when the       component is created. </span></li>
<li class="MsoNormal"><span style="font-size:10pt;font-family:Arial;">Dispatches the updateComplete       event on the component. Flex dispatches additional updateComplete events       whenever the layout, position, size, or other visual characteristic of       the component changes and the component is updated for display. </span><span id="more-76"></span></li>
</ul>
</li>
</ul>
<h6><span style="color:#808080;"><cite class="author"><a href="http://flexcomps.wordpress.com/">Thanks Yogesh Puri</a> </cite></span></h6>


<p>Related posts:<ol><li><a href='http://flex.exposedout.net/2010/03/10/flex-component-lifecycle-and-event-flow-explained/' rel='bookmark' title='Permanent Link: Flex component lifecycle and event flow explained'>Flex component lifecycle and event flow explained</a></li>
<li><a href='http://flex.exposedout.net/2008/09/16/event-propogation/' rel='bookmark' title='Permanent Link: Event Propogation'>Event Propogation</a></li>
<li><a href='http://flex.exposedout.net/2009/05/21/flex-bindable-tag/' rel='bookmark' title='Permanent Link: Flex &quot;Bindable&quot; tag'>Flex &quot;Bindable&quot; tag</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://flex.exposedout.net/2008/09/15/flex-component-lifecycle/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

