<?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>trace(”Hello, world!”); &#187; Flex 3</title>
	<atom:link href="http://www.venkatj.com/archives/category/flex-3/feed" rel="self" type="application/rss+xml" />
	<link>http://www.venkatj.com</link>
	<description>YET ANOTHER FLEX BLOG</description>
	<lastBuildDate>Wed, 17 Dec 2008 09:12:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Scroll to the top&#8230; Scroll to the bottom&#8230;</title>
		<link>http://www.venkatj.com/archives/12</link>
		<comments>http://www.venkatj.com/archives/12#comments</comments>
		<pubDate>Mon, 28 Jan 2008 05:26:09 +0000</pubDate>
		<dc:creator>Venkat</dc:creator>
				<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[Flex Components]]></category>

		<guid isPermaLink="false">http://www.venkatj.com/archives/12</guid>
		<description><![CDATA[I have noticed that quite a few people ask for smooth scrolling on list based components in Flex. Smooth scrolling offers a much nicer feel as opposed to snapping to a particular position in the list. The list classes in Flex do not support this as of now. So, I put together this small component [...]]]></description>
			<content:encoded><![CDATA[<p>I have noticed that quite a few people ask for smooth scrolling on list based components in Flex. Smooth scrolling offers a much nicer feel as opposed to snapping to a particular position in the list. The list classes in Flex do not support this as of now. So, I put together this small component which uses the Box component and provides smooth scrolling.</p>
<p>The disadvantage of using this component is that it does not offer all the optimizations that the list has and hence can choke if it has a large number of items in the data provider. However, it can be safely used for a small list of items, such as displaying a bunch of images etc.</p>
<ul>
<li><a href="http://www.venkatj.com/flex/components/SmoothScroll/index.html">View the source</a></li>
<li><a href="http://www.venkatj.com/flex/components/SmoothScroll/SmoothScrollingList.html">See it in action!</a></li>
</ul>
<p>
<object width="320" height="350">
<param name="movie" value="http://www.venkatj.com/flex/components/SmoothScroll/SmoothScrollingList.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#000000"></param>
<embed type="application/x-shockwave-flash" width="320" height="350" src="http://www.venkatj.com/flex/components/SmoothScroll/SmoothScrollingList.swf" quality="high" bgcolor="#000000" wmode="window" menu="false" ></embed>
</object>
</p>
<p>This component offers vertical smooth scrolling. You can modify the code to easily make it work for horizontal scrolling.</p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.venkatj.com/archives/12/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Custom Metadata Tags</title>
		<link>http://www.venkatj.com/archives/9</link>
		<comments>http://www.venkatj.com/archives/9#comments</comments>
		<pubDate>Fri, 28 Dec 2007 07:38:16 +0000</pubDate>
		<dc:creator>Venkat</dc:creator>
				<category><![CDATA[Flex 3]]></category>

		<guid isPermaLink="false">http://www.venkatj.com/archives/9</guid>
		<description><![CDATA[A little known feature in Flex 3 is the ease with which you can define Custom Metadata. Custom metadata tags can be defined on a class and  can be accessed at runtime. The compiler should be instructed to keep these metadata tags in FlexBuilder. This example shows you how to use custom tags to [...]]]></description>
			<content:encoded><![CDATA[<p>A little known feature in Flex 3 is the ease with which you can define Custom Metadata. Custom metadata tags can be defined on a class and  can be accessed at runtime. The compiler should be instructed to keep these metadata tags in FlexBuilder. This example shows you how to use custom tags to do logging on a class instance. I created a custom tag called &#8216;Log&#8217; and added it to a class to log the click and mouseover events on the class. To include these tags at runtime, go to Project-&gt;Properties-&gt;Flex Compiler and add the following to your compiler arguments: <strong>-keep-as3-metadata+=Log</strong>. This will instruct the compiler to keep these custom tags. Remember to use += or all the current metadata tags like [Bindable], [Event] etc will be lost.</p>
<ul>
<li><a href="http://www.venkatj.com/flex/components/CustomMD/index.html">View the source</a></li>
<li><a href="http://www.venkatj.com/flex/components/CustomMD/CustomMD.html">See it in action!</a></li>
</ul>
<p>
<object width="320" height="220">
<param name="movie" value="http://www.venkatj.com/flex/components/CustomMD/CustomMD.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#000000"></param>
<embed type="application/x-shockwave-flash" width="320" height="220" src="http://www.venkatj.com/flex/components/CustomMD/CustomMD.swf" quality="high" bgcolor="#000000" wmode="window" menu="false" ></embed>
</object>
</p>
<p>Basically, use describeType() method to get the class definition xml which contains the metadata information for the class. Parse this xml to get the list of events that we need to log. You can do some really cool stuff with this custom metadata tags. Take a look at the source to see how this is done.  As usual, the source is well commented.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.venkatj.com/archives/9/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

