<?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>Entrepreneur Geek &#187; RIA</title>
	<atom:link href="http://www.mehtanirav.com/categories/technology/ria/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mehtanirav.com</link>
	<description>Nirav Mehta on life, technology and future</description>
	<lastBuildDate>Sat, 24 Jul 2010 21:10:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Showing Flex Preloader near the top of your Application</title>
		<link>http://www.mehtanirav.com/2010/03/19/showing-flex-preloader-near-the-top-of-your-application</link>
		<comments>http://www.mehtanirav.com/2010/03/19/showing-flex-preloader-near-the-top-of-your-application#comments</comments>
		<pubDate>Fri, 19 Mar 2010 12:47:52 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[Flex & Flash]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[downloadprogressbar]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[preloader]]></category>
		<category><![CDATA[top]]></category>

	<!-- AutoMeta Start -->
	<category>preloader</category>
	<category>custom</category>
	<category>downloadprogressbar</category>
	<category>initialize</category>
	<category>downloadprogressbar</category>
	<category>override</category>
	<category>mydownloadprogressbar</category>
	<category>mydownloadprogressbar</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/?p=1158</guid>
		<description><![CDATA[Flex comes with a reasonably good preloader (DownloadProgressBar) that shows in application center while the swf is loading and initializing. I had an application that is taller than browser&#8217;s view port height. This means the preloader will show below the fold &#8211; making it invisible to users who don&#8217;t scroll down. Even when the preloader [...]


Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
<li><a href='http://www.mehtanirav.com/2010/01/17/flex-regular-expression-online-testing-learning-tool' rel='bookmark' title='Permanent Link: Flex Regular Expression Online Testing / Learning Tool'>Flex Regular Expression Online Testing / Learning Tool</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Flex comes with a reasonably good preloader (<strong>DownloadProgressBar</strong>) that shows in application center while the swf is loading and initializing. I had an application that is taller than browser&#8217;s view port height. This means the preloader will show below the fold &#8211; making it invisible to users who don&#8217;t scroll down. Even when the preloader is visible, it &#8220;feels&#8221; it&#8217;s just not in the right position.</p>
<p>I knew I could write some custom preloader, but I did not have the time / need for it. After reading a bit of documentation and diving in the DownloadProgressBar source code, I figured the solution was actually very easy.</p>
<p>Here&#8217;s the custom preloader source code that shows download progress bar for your Flex application near its top.</p>
<p><strong>MyDownloadProgressBar.as</strong></p>
<pre>
package com.components
{
  import flash.events.ProgressEvent;
  import mx.preloaders.DownloadProgressBar;

  public class MyDownloadProgressBar extends DownloadProgressBar
  {
    public function MyDownloadProgressBar()
    {
      super();
      // Set the download label.
      downloadingLabel="Downloading..."
      // Set the initialization label.
      initializingLabel="Initializing..."
    }

    // Override to return true so progress bar appears during initialization.
    override protected function showDisplayForInit(elapsedTime:int, count:int):Boolean {
      return true;
    }

    // Override to return true so progress bar appears during download.
    override protected function showDisplayForDownloading(elapsedTime:int, event:ProgressEvent):Boolean {
      return true;
    }

    // Override initialize so that we can position the loader
    override public function initialize():void {
      super.initialize();
      center(stageWidth, (stageHeight > 250) ? 250 : stageHeight);
    }
  }
}
</pre>
<p>The critical part is <code>initialize</code> function. <code>super.initialize();</code> calls <code>DownloadProgressBar</code>&#8216;s initialization routine &#8211; which centers the preloader. We then call center again, but modifying the height parameter. If application size is more than 250 pixels, the preloader will be centered vertically within 250 pixels from top. </p>
<p>The only other code you need to write to make this work, is to tell your <code>Application</code> to use this preloader.</p>
<pre>
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
	preloader="com.components.MyDownloadProgressBar"&gt;
</pre>
<p>Note: Remember to place the first code as <code>MyDownloadProgressBar.as</code> within a <code>com/components</code> folder under your main application.mxml file.</p>
<p>That made me happy! But if you are looking for more, you can also check out:</p>
<ul>
<li><a href="http://www.pathf.com/blogs/2008/08/custom-flex-3-lightweight-preloader-with-source-code/">Custom Flex 3 Lightweight Preloader with source code</a></li>
<li><a href="http://flexdevtips.blogspot.com/2009/03/another-custom-preloader.html">Custom Preloaders</a> and <a href="http://flexdevtips.blogspot.com/2009/03/showing-preloader-again-after-loading.html">Showing the preloader again after loading is finished</a> on Flex and ActionScript Development Tips blog</li>
<li><a href="http://npacemo.com/wordpress/2008/07/06/flex-application-bootstrapping-totally-custom-preloader/">Flex Application Bootstrapping and Totally Custom Preloader</a></li>
<li>And the trusted <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=app_container_4.html">Flex Documentation on DownloadPreogressBar</a></li>
</ul>
<p>Hope you enjoy!</p>


<p>Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
<li><a href='http://www.mehtanirav.com/2010/01/17/flex-regular-expression-online-testing-learning-tool' rel='bookmark' title='Permanent Link: Flex Regular Expression Online Testing / Learning Tool'>Flex Regular Expression Online Testing / Learning Tool</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2010/03/19/showing-flex-preloader-near-the-top-of-your-application/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flex Regular Expression Online Testing / Learning Tool</title>
		<link>http://www.mehtanirav.com/2010/01/17/flex-regular-expression-online-testing-learning-tool</link>
		<comments>http://www.mehtanirav.com/2010/01/17/flex-regular-expression-online-testing-learning-tool#comments</comments>
		<pubDate>Sun, 17 Jan 2010 12:08:03 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[Flex & Flash]]></category>
		<category><![CDATA[JavaScript/CSS]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[regexp]]></category>
		<category><![CDATA[regular expressions]]></category>

	<!-- AutoMeta Start -->
	<category></category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/?p=1131</guid>
		<description><![CDATA[When it comes to Regular Expressions, I start feeling giddy. Even after using them a lot on many projects, I never remember the qualifiers and syntax. It&#8217;s always RTFM for me when I need to use some regular expressions in my code. And that happened again today. I looked around the manual and searched online [...]


Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
<li><a href='http://www.mehtanirav.com/2009/08/11/live-scribe-amazing-writing-technology-never-miss-a-word' rel='bookmark' title='Permanent Link: Live Scribe &#8211; Amazing Writing Technology &#8211; Never Miss A Word'>Live Scribe &#8211; Amazing Writing Technology &#8211; Never Miss A Word</a></li>
<li><a href='http://www.mehtanirav.com/2009/09/22/paypal-sales-marketing-activity-trend-spotting' rel='bookmark' title='Permanent Link: Paypal Sales + Marketing Activity Trend Spotting'>Paypal Sales + Marketing Activity Trend Spotting</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>When it comes to Regular Expressions, I start feeling giddy. Even after using them a lot on many projects, I never remember the qualifiers and syntax. It&#8217;s always RTFM for me when I need to use some regular expressions in my code.</p>
<p>And that happened again today. I looked around the manual and searched online for a &#8220;quick fix&#8221; on the regular expression I needed. And I found a very interesting online Regular Expression trial / demo / learn by exploring tool. It&#8217;s made in Flex (and I needed RegExp for Flex) and helped me develop the RegExp I needed in a couple of minutes. (ok, I am still slow, but I found it!)</p>
<p>Thank you Remus Stratulat for creating this useful tool! BTW, he also has a similar tool for <a href="http://www.stratulat.com/Regular_Expressions_JavaScript.html">JavaScript Regular Expressions</a>.</p>
<p>Click on the image below or <a href="http://www.stratulat.com/Regular_Expressions_Flex.html">here and jump to online regular expression checking tool</a>.</p>
<div id="attachment_1132" class="wp-caption alignnone" style="width: 410px"><a href="http://www.stratulat.com/Regular_Expressions_Flex.html"><img class="size-full wp-image-1132" title="Flex-Regular-Expression-Tool" src="http://www.mehtanirav.com/wp-content/uploads/2010/01/Flex-Regular-Expression-Tool.gif" alt="Online Regular Expression Checking Tool for Flex and JavaScript" width="400" height="225" /></a><p class="wp-caption-text">Online Regular Expression Checking Tool for Flex and JavaScript</p></div>


<p>Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
<li><a href='http://www.mehtanirav.com/2009/08/11/live-scribe-amazing-writing-technology-never-miss-a-word' rel='bookmark' title='Permanent Link: Live Scribe &#8211; Amazing Writing Technology &#8211; Never Miss A Word'>Live Scribe &#8211; Amazing Writing Technology &#8211; Never Miss A Word</a></li>
<li><a href='http://www.mehtanirav.com/2009/09/22/paypal-sales-marketing-activity-trend-spotting' rel='bookmark' title='Permanent Link: Paypal Sales + Marketing Activity Trend Spotting'>Paypal Sales + Marketing Activity Trend Spotting</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2010/01/17/flex-regular-expression-online-testing-learning-tool/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AIR 2, Microsoft future UI and iCheckbox</title>
		<link>http://www.mehtanirav.com/2009/11/14/air-2-microsoft-future-ui-and-icheckbox</link>
		<comments>http://www.mehtanirav.com/2009/11/14/air-2-microsoft-future-ui-and-icheckbox#comments</comments>
		<pubDate>Fri, 13 Nov 2009 22:00:39 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[Flex & Flash]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[UI]]></category>

	<!-- AutoMeta Start -->
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/?p=1099</guid>
		<description><![CDATA[Adobe AIR 2.0 Beta out &#8211; list of new features Adobe released a beta of the next version of AIR &#8211; AIR 2. Christian Cantrell posted an exhaustive list of everything that&#8217;s new in AIR 2.0. The list is impressive, and includes some things we&#8217;ve been thinking about &#8211; audio recording, calling native apps, multi [...]


Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/09/05/test-your-site-across-multiple-browsers-with-adobe-browserlabs' rel='bookmark' title='Permanent Link: Test your site across multiple browsers with Adobe BrowserLabs'>Test your site across multiple browsers with Adobe BrowserLabs</a></li>
<li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Adobe AIR 2.0 Beta out &#8211; list of new features</h3>
<p>Adobe released a beta of the next version of AIR &#8211; AIR 2. <a href="http://blogs.adobe.com/cantrell/archives/2009/10/everything_new_in_air_2.html">Christian Cantrell posted an exhaustive list of everything that&#8217;s new in AIR 2.0</a>. The list is impressive, and includes some things we&#8217;ve been thinking about &#8211; audio recording, calling native apps, multi touch and many more. The <strong>number of AIR applications on my computer is rising</strong>, and looking at this list, I can tell the number is just going higher.</p>
<p>Are you an AIR developer? What do you like the most in that feature list?</p>
<h3>Microsoft too can build good UI &#8211; here&#8217;s a &#8220;sixth sensy&#8221; demo</h3>
<p>So everyone who&#8217;s worth their salt is working on gestures and eye tracking and other &#8211; more natural &#8211; ways of interacting with a computer. Two interesting videos here that demonstrate pen, audio, gesture and eye tracking input. Good show Microsoft, I say.</p>
<p><a href="http://www.youtube.com/watch?v=Yw920d58xLs&amp;feature=player_embedded">Craig Mundie demonstrates future UI &#8211; part 1</a> and <a href="http://www.youtube.com/watch?v=M1ToI_GuoJQ&amp;feature=player_embedded">part 2</a>.</p>
<h3>Did you fall in love with the slider toggle button on iPhone? Now you can use if in Flex</h3>
<p><a href="http://srinivasannam.wordpress.com/2009/11/13/icheckbox-iphone-switch-for-flex/">Srinivas Annam has built an iPhone style switch component for Flex &#8211; iCheckbox</a>. Looks nice and is worth a try. I am sure users find it easier to use than a checkbox.</p>


<p>Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/09/05/test-your-site-across-multiple-browsers-with-adobe-browserlabs' rel='bookmark' title='Permanent Link: Test your site across multiple browsers with Adobe BrowserLabs'>Test your site across multiple browsers with Adobe BrowserLabs</a></li>
<li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2009/11/14/air-2-microsoft-future-ui-and-icheckbox/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test your site across multiple browsers with Adobe BrowserLabs</title>
		<link>http://www.mehtanirav.com/2009/09/05/test-your-site-across-multiple-browsers-with-adobe-browserlabs</link>
		<comments>http://www.mehtanirav.com/2009/09/05/test-your-site-across-multiple-browsers-with-adobe-browserlabs#comments</comments>
		<pubDate>Sat, 05 Sep 2009 07:24:26 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[Flex & Flash]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[testing]]></category>

	<!-- AutoMeta Start -->
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/?p=1068</guid>
		<description><![CDATA[Web designers and developers are always challenged by the diversity of browsers (each with its own quirks). It&#8217;s generally a time consuming and error prone process. Requires someone with a skilled eye to spot the problems. Now, Adobe has simplified that process with BrowserLabs. You can see multiple browsers side by side, and can even [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<div id="attachment_1067" class="wp-caption aligncenter" style="width: 410px"><a href="https://browserlab.adobe.com/"><img class="size-full wp-image-1067" title="browserlab_screen_small" src="http://www.mehtanirav.com/wp-content/uploads/2009/09/browserlab_screen_small.jpg" alt="Adobe BrowserLabs" width="400" height="141" /></a><p class="wp-caption-text">Compare multiple browsers side by side - Adobe BrowserLabs</p></div>
<p>Web designers and developers are always challenged by the diversity of browsers (each with its own <a href="http://www.quirksmode.org/">quirks</a>). It&#8217;s generally a time consuming and error prone process. Requires someone with a skilled eye to spot the problems.</p>
<p>Now, Adobe has simplified that process with <strong><a href="https://browserlab.adobe.com/">BrowserLabs</a></strong>. You can see multiple browsers side by side, and can even overlay them to quickly spot differences. It&#8217;s free now and worth a try. Check it out.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2009/09/05/test-your-site-across-multiple-browsers-with-adobe-browserlabs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notification Components in Flex</title>
		<link>http://www.mehtanirav.com/2009/08/05/notification-components-in-flex</link>
		<comments>http://www.mehtanirav.com/2009/08/05/notification-components-in-flex#comments</comments>
		<pubDate>Wed, 05 Aug 2009 17:18:36 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[Flex & Flash]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[degrafa]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[notification]]></category>

	<!-- AutoMeta Start -->
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/2009/08/05/notification-components-in-flex</guid>
		<description><![CDATA[If you are building a Flex application, you may need a way to show messages to the user. The usual way to do this is via Alerts. Alerts can be quite distracting and generally avoidable. Another alternative is to have a status message area (like a status bar) and show messages there. But an even [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>If you are building a Flex application, you may need a way to show messages to the user. The usual way to do this is via Alerts. Alerts can be quite distracting and generally avoidable. Another alternative is to have a status message area (like a status bar) and show messages there.</p>
<div id="attachment_1048" class="wp-caption alignright" style="width: 272px"><a href="http://growl.info/"><img class="size-full wp-image-1048" title="growl" src="http://www.mehtanirav.com/wp-content/uploads/2009/08/growl.jpg" alt="Growl" width="262" height="108" /></a><p class="wp-caption-text">Growl</p></div>
<p>But an even more interesting idea would be to show notification windows / popups. If you have seen <a href="http://growl.info/">Growl</a> on the Mac, you know what I am talking about. Heck, even Facebook and most instant messengers show notifications now.</p>
<p>So how would you implement this using Flex?</p>
<p>Short answer, don&#8217;t implement them yourself. There are two very good and free components available that you can use.</p>
<p><strong><a href="http://afoucal.free.fr/index.php/2009/07/06/flex-notification/">Flex Notification</a></strong><a href="http://afoucal.free.fr/index.php/2009/07/06/flex-notification/"></a> is easy to implement and works very well.</p>
<p><strong><a href="http://lukesh.wordpress.com/2009/04/04/rawr-flexgrowl-component-available/">FlexGrowl</a></strong> looks and works excellent but needs <a href="http://www.mehtanirav.com/2008/09/06/declaratively-generate-graphics-in-flex-with-degrafa">Degrafa</a>.</p>
<div id="attachment_1049" class="wp-caption aligncenter" style="width: 292px"><a href="http://afoucal.free.fr/index.php/2009/07/06/flex-notification/"><img class="size-full wp-image-1049" title="FlexNotification" src="http://www.mehtanirav.com/wp-content/uploads/2009/08/FlexNotification.jpg" alt="Flex Notification Component" width="282" height="103" /></a><p class="wp-caption-text">Flex Notification Component</p></div>
<div id="attachment_1050" class="wp-caption aligncenter" style="width: 232px"><a href="http://lukesh.wordpress.com/2009/04/04/rawr-flexgrowl-component-available/"><img class="size-full wp-image-1050" title="FlexGrowl" src="http://www.mehtanirav.com/wp-content/uploads/2009/08/FlexGrowl.jpg" alt="Flex Growl" width="222" height="121" /></a><p class="wp-caption-text">Flex Growl</p></div>
<p>I used Flex Notifications in an upcoming product, but am facing some issues with focus loss when the notification goes away. Don&#8217;t want to add the download overhead of <a href="http://www.degrafa.org">degrafa</a> to my app just for notifications yet!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2009/08/05/notification-components-in-flex/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Yahoo! Stencils &#8211; quickly build mockups</title>
		<link>http://www.mehtanirav.com/2009/07/25/yahoo-stencils-quickly-build-mockups</link>
		<comments>http://www.mehtanirav.com/2009/07/25/yahoo-stencils-quickly-build-mockups#comments</comments>
		<pubDate>Sat, 25 Jul 2009 08:02:19 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[RIA]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[design patterns]]></category>
		<category><![CDATA[flash catalyst]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[yahoo]]></category>

	<!-- AutoMeta Start -->
	<category></category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/2009/07/25/yahoo-stencils-quickly-build-mockups</guid>
		<description><![CDATA[Yahoo! Design Patterns Library has a set of &#8220;stencils&#8221; available to mock up your next great RIA project! The stencils are available in OmniGraffle, Visio, PDF, PNG and SVG formats. So you can use them with Illustrator or Photoshop / Gimp as well. They have included stencils for: Ad Units, Calendars, Carousels, Charts and Tables, [...]


Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/11/14/air-2-microsoft-future-ui-and-icheckbox' rel='bookmark' title='Permanent Link: AIR 2, Microsoft future UI and iCheckbox'>AIR 2, Microsoft future UI and iCheckbox</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Yahoo! Design Patterns Library has a set of &#8220;<a href="http://developer.yahoo.com/ypatterns/wireframes/">stencils</a>&#8221; available to mock up your next great RIA project! The stencils are available in OmniGraffle, Visio, PDF, PNG and SVG formats. So you can use them with Illustrator or Photoshop / Gimp as well.</p>
<p><a href="http://developer.yahoo.com/ypatterns/wireframes/"><img class="alignnone size-full wp-image-1039" title="Yahoo Design Stencils" src="http://www.mehtanirav.com/wp-content/uploads/2009/07/yahoo_stencil_illustration.jpg" alt="Yahoo Design Stencils" width="540" height="236" /></a></p>
<p>They have included stencils for: Ad Units, Calendars, Carousels, Charts and Tables, UI Controls, Form Elements, Grids, Menus and Buttons, Mobile &#8211; General, Mobile &#8211; iPhone, Navigation and Pagination, OS Elements, Placeholder Text, Screen Resolutions, Tabs &amp; Windows and Containers.</p>
<p>That&#8217;s quite a lot &#8211; all available under Creative Commons.</p>
<p><strong>And if you were building Flex RIAs, <a href="http://www.sitepoint.com/article/flash-catalyst-flash-builder/">here&#8217;s an article on using these stencils along with Flash Catalyst to churn out kickass Flex Apps with almost zero coding</a>!</strong></p>
<p>Enjoy!</p>


<p>Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/11/14/air-2-microsoft-future-ui-and-icheckbox' rel='bookmark' title='Permanent Link: AIR 2, Microsoft future UI and iCheckbox'>AIR 2, Microsoft future UI and iCheckbox</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2009/07/25/yahoo-stencils-quickly-build-mockups/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging PHP for the first time in 10 years, and loving it!</title>
		<link>http://www.mehtanirav.com/2009/04/21/debugging-php-for-the-first-time-in-10-years-and-loving-it</link>
		<comments>http://www.mehtanirav.com/2009/04/21/debugging-php-for-the-first-time-in-10-years-and-loving-it#comments</comments>
		<pubDate>Tue, 21 Apr 2009 13:43:32 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[Flex & Flash]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[debug php]]></category>
		<category><![CDATA[zend]]></category>

	<!-- AutoMeta Start -->
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/?p=970</guid>
		<description><![CDATA[I have been writing PHP code for 10 years now and have used a variety of ways to debug my code &#8211; except the actual runtime debugging! I have used echo statements and log files to debug and solve problems. I knew there is XDebug and Zend Debugger, but never tried them. Today, I downloaded, [...]


Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/12/17/coding-clean-and-semantic-templates' rel='bookmark' title='Permanent Link: Coding Clean and Semantic Templates'>Coding Clean and Semantic Templates</a></li>
<li><a href='http://www.mehtanirav.com/2009/11/14/air-2-microsoft-future-ui-and-icheckbox' rel='bookmark' title='Permanent Link: AIR 2, Microsoft future UI and iCheckbox'>AIR 2, Microsoft future UI and iCheckbox</a></li>
<li><a href='http://www.mehtanirav.com/2010/03/19/showing-flex-preloader-near-the-top-of-your-application' rel='bookmark' title='Permanent Link: Showing Flex Preloader near the top of your Application'>Showing Flex Preloader near the top of your Application</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have been writing PHP code for 10 years now and have used a variety of ways to debug my code &#8211; <strong>except the actual runtime debugging</strong>! I have used echo statements and log files to debug and solve problems. I knew there is <a href="http://www.xdebug.org/">XDebug</a> and <a href="http://www.zend.com/en/community/pdt">Zend Debugger</a>, but never tried them.</p>
<p><img class="alignright size-full wp-image-971" title="debugging-php" src="http://www.mehtanirav.com/wp-content/uploads/2009/04/debugging-php.jpg" alt="debugging-php" width="279" height="89" />Today, I <a href="http://downloads.zend.com/pdt/server-debugger/">downloaded</a>, <a href="http://www.ibm.com/developerworks/opensource/library/os-php-zenddebug/">setup</a> and used Zend Debugger for the first time. And I loved it! It was awesome to see variable watch, breakpoints and the like. Just loved it!</p>
<p>Why did I use the debugger? I&#8217;ve been using Flex Builder myself for last one year heavily and think the debugger is indispensable. I have done some .NET code earlier and love debugger there too. For PHP, it was more like <strong>&#8220;I don&#8217;t need a debugger!&#8221;</strong> so far.</p>
<p>I dropped that today and embraced a debugger. And I am loving it so far!</p>
<p>Do you use a PHP Debugger?</p>


<p>Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/12/17/coding-clean-and-semantic-templates' rel='bookmark' title='Permanent Link: Coding Clean and Semantic Templates'>Coding Clean and Semantic Templates</a></li>
<li><a href='http://www.mehtanirav.com/2009/11/14/air-2-microsoft-future-ui-and-icheckbox' rel='bookmark' title='Permanent Link: AIR 2, Microsoft future UI and iCheckbox'>AIR 2, Microsoft future UI and iCheckbox</a></li>
<li><a href='http://www.mehtanirav.com/2010/03/19/showing-flex-preloader-near-the-top-of-your-application' rel='bookmark' title='Permanent Link: Showing Flex Preloader near the top of your Application'>Showing Flex Preloader near the top of your Application</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2009/04/21/debugging-php-for-the-first-time-in-10-years-and-loving-it/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Intelligent Time Duration / Estimate Slider in Flex (inspired from The Hit List)</title>
		<link>http://www.mehtanirav.com/2009/04/16/intelligent-time-duration-estimate-slider-in-flex-inspired-from-the-hit-list</link>
		<comments>http://www.mehtanirav.com/2009/04/16/intelligent-time-duration-estimate-slider-in-flex-inspired-from-the-hit-list#comments</comments>
		<pubDate>Thu, 16 Apr 2009 10:51:51 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[Flex & Flash]]></category>
		<category><![CDATA[estimate slider]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[the hit list]]></category>

	<!-- AutoMeta Start -->
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/?p=960</guid>
		<description><![CDATA[I wrote yesterday that I am working on a time estimate slider like The Hit List. It&#8217;s finally ready! Here&#8217;s how it looks in The Hit List. And here&#8217;s how it looks in my Flex application: Want to see how it works? Here&#8217;s the live example. Want the source code? Download source MXML here. What [...]


Related posts:<ol><li><a href='http://www.mehtanirav.com/2010/01/17/flex-regular-expression-online-testing-learning-tool' rel='bookmark' title='Permanent Link: Flex Regular Expression Online Testing / Learning Tool'>Flex Regular Expression Online Testing / Learning Tool</a></li>
<li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
<li><a href='http://www.mehtanirav.com/2010/03/19/showing-flex-preloader-near-the-top-of-your-application' rel='bookmark' title='Permanent Link: Showing Flex Preloader near the top of your Application'>Showing Flex Preloader near the top of your Application</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I <a href="http://www.mehtanirav.com/2009/04/15/building-a-time-estimate-slider-like-the-hit-list">wrote yesterday that I am working on a time estimate slider like The Hit List</a>. It&#8217;s finally ready!</p>
<p>Here&#8217;s how it looks in The Hit List.</p>
<div id="attachment_958" class="wp-caption alignnone" style="width: 295px"><img class="size-full wp-image-958" title="hitlist-estimate-slider" src="http://www.mehtanirav.com/wp-content/uploads/2009/04/hitlist-estimate-slider.png" alt="Smart Estimate Slider in The Hit List" width="285" height="105" /><p class="wp-caption-text">Smart Estimate Slider in The Hit List</p></div>
<p>And here&#8217;s how it looks in my Flex application:</p>
<div id="attachment_961" class="wp-caption alignnone" style="width: 334px"><img class="size-full wp-image-961" title="estimate-slider-flex" src="http://www.mehtanirav.com/wp-content/uploads/2009/04/estimate-slider-flex.png" alt="Smart Estimate / Duration Slider in Flex" width="324" height="105" /><p class="wp-caption-text">Smart Estimate / Duration Slider in Flex</p></div>
<p>Want to see how it works? <strong>Here&#8217;s the <a title="Time Estimate / Duration Slider Component In Flex" href="http://www.mehtanirav.com/uploads/EstimateSlider/">live example</a>.</strong></p>
<p>Want the source code? <a title="Estimate Slider Source Code MXML" href="http://www.mehtanirav.com/uploads/EstimateSlider/EstimateSlider.mxml">Download source MXML here</a>.</p>
<p><strong>What does this slider do?</strong></p>
<ul>
<li>Drag the slider to select estimated hours / duration.</li>
<li>The drag thumb will snap differently between 0h to 1h (every 15 minutes), 1h to 1d (every 15 minutes, but within ticks), and 1d to 1w (every 2 hours).</li>
<li>Can set the default value for slider</li>
<li>Value of slider is converted to hours</li>
<li>Can define hours in a day and days in a week</li>
<li>Estimation slider shows up when focus goes in the text field. Hides when you click Done button (or another screen element that can get focus). But not when you focus on the slider itself.</li>
</ul>
<p>It was a challenge, and I loved solving it. Had to hard code some calculations, but it&#8217;s still flexible. Allows customizing hours in a day and days in the week. This example also demonstrates Number Formatter, and how to handle focus events.</p>
<p>Still haven&#8217;t converted hours into a more readable text (e.g. 40h into 1w). But that&#8217;s for later.</p>
<p>Here&#8217;s another thing that you may like! <strong><a href="http://www.mehtanirav.com/2009/04/09/card-deck-animation-in-flex">Card Deck animation like The Hit List</a></strong>!</p>
<p>Do you like it? How would you have done it?</p>


<p>Related posts:<ol><li><a href='http://www.mehtanirav.com/2010/01/17/flex-regular-expression-online-testing-learning-tool' rel='bookmark' title='Permanent Link: Flex Regular Expression Online Testing / Learning Tool'>Flex Regular Expression Online Testing / Learning Tool</a></li>
<li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
<li><a href='http://www.mehtanirav.com/2010/03/19/showing-flex-preloader-near-the-top-of-your-application' rel='bookmark' title='Permanent Link: Showing Flex Preloader near the top of your Application'>Showing Flex Preloader near the top of your Application</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2009/04/16/intelligent-time-duration-estimate-slider-in-flex-inspired-from-the-hit-list/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building a time estimate slider like The Hit List</title>
		<link>http://www.mehtanirav.com/2009/04/15/building-a-time-estimate-slider-like-the-hit-list</link>
		<comments>http://www.mehtanirav.com/2009/04/15/building-a-time-estimate-slider-like-the-hit-list#comments</comments>
		<pubDate>Wed, 15 Apr 2009 11:07:10 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[Flex & Flash]]></category>
		<category><![CDATA[estimate slider]]></category>
		<category><![CDATA[the hit list]]></category>

	<!-- AutoMeta Start -->
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/?p=957</guid>
		<description><![CDATA[The estimates slider in The Hit List is smart. Its tick marks are equidistant, but values are not. The snap between each tick varies according to its context. Building this in Flex! It&#8217;s been 1.5 hours, still figuring out the exact logic! My fascination of The Hit List goes on! Related posts:AIR 2, Microsoft future [...]


Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/11/14/air-2-microsoft-future-ui-and-icheckbox' rel='bookmark' title='Permanent Link: AIR 2, Microsoft future UI and iCheckbox'>AIR 2, Microsoft future UI and iCheckbox</a></li>
<li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
<li><a href='http://www.mehtanirav.com/2009/08/11/live-scribe-amazing-writing-technology-never-miss-a-word' rel='bookmark' title='Permanent Link: Live Scribe &#8211; Amazing Writing Technology &#8211; Never Miss A Word'>Live Scribe &#8211; Amazing Writing Technology &#8211; Never Miss A Word</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="attachment_958" class="wp-caption alignnone" style="width: 295px"><img class="size-full wp-image-958" title="hitlist-estimate-slider" src="http://www.mehtanirav.com/wp-content/uploads/2009/04/hitlist-estimate-slider.png" alt="Smart Estimate Slider" width="285" height="105" /><p class="wp-caption-text">Smart Estimate Slider</p></div>
<p>The estimates slider in <a href="http://www.potionfactory.com/thehitlist">The Hit List</a> is smart. Its tick marks are equidistant, but values are not. The snap between each tick varies according to its context.</p>
<p>Building this in Flex! It&#8217;s been 1.5 hours, still figuring out the exact logic!</p>
<p>My fascination of The Hit List goes on!</p>


<p>Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/11/14/air-2-microsoft-future-ui-and-icheckbox' rel='bookmark' title='Permanent Link: AIR 2, Microsoft future UI and iCheckbox'>AIR 2, Microsoft future UI and iCheckbox</a></li>
<li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
<li><a href='http://www.mehtanirav.com/2009/08/11/live-scribe-amazing-writing-technology-never-miss-a-word' rel='bookmark' title='Permanent Link: Live Scribe &#8211; Amazing Writing Technology &#8211; Never Miss A Word'>Live Scribe &#8211; Amazing Writing Technology &#8211; Never Miss A Word</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2009/04/15/building-a-time-estimate-slider-like-the-hit-list/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Scrolling with mouse wheel in Flex application &#8211; even on Mac</title>
		<link>http://www.mehtanirav.com/2009/04/14/scrolling-with-mouse-wheel-in-flex-application-even-on-mac</link>
		<comments>http://www.mehtanirav.com/2009/04/14/scrolling-with-mouse-wheel-in-flex-application-even-on-mac#comments</comments>
		<pubDate>Tue, 14 Apr 2009 12:51:10 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[Flex & Flash]]></category>
		<category><![CDATA[JavaScript/CSS]]></category>
		<category><![CDATA[mousewheel]]></category>
		<category><![CDATA[scroll]]></category>

	<!-- AutoMeta Start -->
	<category></category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/?p=955</guid>
		<description><![CDATA[By default Flex components do not scroll as you scroll using the wheel on your mouse. You can achieve this by writing a mouseWheel event handler, checked the delta value and scrolling up or down depending on whether it&#8217;s positive or negative. But that does not work on Mac OS X. The solution involves tracking [...]


Related posts:<ol><li><a href='http://www.mehtanirav.com/2010/03/19/showing-flex-preloader-near-the-top-of-your-application' rel='bookmark' title='Permanent Link: Showing Flex Preloader near the top of your Application'>Showing Flex Preloader near the top of your Application</a></li>
<li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
<li><a href='http://www.mehtanirav.com/2010/01/17/flex-regular-expression-online-testing-learning-tool' rel='bookmark' title='Permanent Link: Flex Regular Expression Online Testing / Learning Tool'>Flex Regular Expression Online Testing / Learning Tool</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>By default Flex components do not scroll as you scroll using the wheel on your mouse. You can achieve this by writing a <a href="http://blog.flexexamples.com/2007/08/28/detecting-the-mouse-scroll-wheel-in-a-flex-application/">mouseWheel event handler</a>, checked the delta value and scrolling up or down depending on whether it&#8217;s positive or negative. </p>
<p>But that does not work on Mac OS X.</p>
<p>The solution involves tracking mouse move events at browser level using JavaScript, and passing them to Flex. A handler in Flex will then scroll the application / component as you specify. </p>
<p>Here&#8217;s a <a href="http://hasseg.org/blog/?p=138">detailed blog post and solution to scrolling Flex components / application with mouse wheel &#8211; in all browsers &#8211; all platforms</a>. </p>
<p>It works well! Except that you can only scroll one way &#8211; either vertically (as in the code above) or horizontally (by hacking the code above!)</p>
<p>Wish Flex supports this by default someday! Would really help!</p>
<p>What do you think? Do you use mouse wheel / track pad to scroll?</p>


<p>Related posts:<ol><li><a href='http://www.mehtanirav.com/2010/03/19/showing-flex-preloader-near-the-top-of-your-application' rel='bookmark' title='Permanent Link: Showing Flex Preloader near the top of your Application'>Showing Flex Preloader near the top of your Application</a></li>
<li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
<li><a href='http://www.mehtanirav.com/2010/01/17/flex-regular-expression-online-testing-learning-tool' rel='bookmark' title='Permanent Link: Flex Regular Expression Online Testing / Learning Tool'>Flex Regular Expression Online Testing / Learning Tool</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2009/04/14/scrolling-with-mouse-wheel-in-flex-application-even-on-mac/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
