<?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>Anju&#039;s Flex Musings</title>
	<atom:link href="http://blogs.adobe.com/anjuonflex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.adobe.com/anjuonflex</link>
	<description>Just another Adobe Blogs site</description>
	<lastBuildDate>Mon, 29 Nov 2010 20:28:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>To add SuperScript or SubScript in Label &#8211; Flex 4</title>
		<link>http://blogs.adobe.com/anjuonflex/2010/11/29/to-add-superscript-or-subscript-in-label-flex-4/</link>
		<comments>http://blogs.adobe.com/anjuonflex/2010/11/29/to-add-superscript-or-subscript-in-label-flex-4/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 20:28:17 +0000</pubDate>
		<dc:creator>anjus</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.adobe.com/anjuonflex/?p=11</guid>
		<description><![CDATA[Sometimes we need to do some rich text formatting in a Label which may include &#8220;SuperScript&#8221; and &#8220;SubScript&#8221;. Flex 4 and spark controls offer a very strong and easy way to implement this through &#8220;Text Layout Framework&#8221; .  Flex 3 &#8230; <a href="http://blogs.adobe.com/anjuonflex/2010/11/29/to-add-superscript-or-subscript-in-label-flex-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Sometimes we need to do some rich text formatting in a Label which may include &#8220;SuperScript&#8221; and &#8220;SubScript&#8221;.</p>
<p>Flex 4 and spark controls offer a very strong and easy way to implement this through &#8220;Text Layout Framework&#8221; .  Flex 3 can also use the same provided we have included the swc of TextLayoutFramework.  This is pre-included in Flash Builder 4.</p>
<p>The property we use is baselineShift of textFlow object of RichText controls.</p>
<p>A very similar example of how to use this in button is given at :  http://cookbooks.adobe.com/post_Superscript___Subscript_with_Text_Layout_Framework-18175.html</p>
<p>But to use this for a Label where we don&#8217;t need the user interaction to achieve the same we need to set the &#8220;baselineShift&#8221;.</p>
<p>Below sample illustrates the usage of  the same, both in MXML and ActionScript:</p>
<p><span id="more-11"></span><strong>&lt;fx:Script&gt;<br />
&lt;![CDATA[<br />
import mx.events.FlexEvent;<br />
protected function label1_creationCompleteHandler(event:FlexEvent):void<br />
{<br />
lbl.textFlow.baselineShift = "superscript";<br />
lbl.validateNow();<br />
}</strong></p>
<p><strong>]]&gt;<br />
&lt;/fx:Script&gt;</strong></p>
<p><strong>&lt;s:RichText textAlign=&#8221;justify&#8221; height=&#8221;50%&#8221; y=&#8221;100&#8243; width=&#8221;50%&#8221; x=&#8221;130&#8243;&gt;<br />
&lt;s:span&gt;N&lt;/s:span&gt;&lt;s:span baselineShift=&#8221;superscript&#8221;&gt;2&lt;/s:span&gt;<br />
&lt;s:span&gt;+ N&lt;/s:span&gt;&lt;s:span baselineShift=&#8221;superscript&#8221;&gt;3&lt;/s:span&gt;<br />
&lt;s:span&gt; = N&lt;/s:span&gt;<br />
&lt;/s:RichText&gt;</strong></p>
<p><strong>&lt;s:RichText textAlign=&#8221;justify&#8221; height=&#8221;50%&#8221; y=&#8221;200&#8243; width=&#8221;50%&#8221; x=&#8221;130&#8243;&gt;<br />
&lt;s:span&gt;N&lt;/s:span&gt;&lt;s:span baselineShift=&#8221;subscript&#8221;&gt;2&lt;/s:span&gt;<br />
&lt;s:span&gt;+ N&lt;/s:span&gt;&lt;s:span baselineShift=&#8221;subscript&#8221;&gt;3&lt;/s:span&gt;<br />
&lt;s:span&gt; = N &lt;/s:span&gt;<br />
&lt;/s:RichText&gt;</strong></p>
<p><strong>&lt;s:RichText text=&#8221;2&#8243; id=&#8221;lbl&#8221; creationComplete=&#8221;label1_creationCompleteHandler(event)&#8221;<br />
height=&#8221;15&#8243; y=&#8221;50&#8243; width=&#8221;12&#8243; x=&#8221;130&#8243; /&gt;</strong></p>
<p><strong>&lt;s:RichText text=&#8221;N&#8221; id=&#8221;lbl2&#8243; creationComplete=&#8221;lbl_creationCompleteHandler(event)&#8221;<br />
height=&#8221;15&#8243; y=&#8221;50&#8243; width=&#8221;20&#8243; x=&#8221;123&#8243; /&gt;</strong></p>
<p>The output would like as follows :</p>
<p><a class="lightbox" title="Result" href="http://blogs.adobe.com/anjuonflex/files/2010/11/output.jpg"><img class="aligncenter size-full wp-image-13" title="Result" src="http://blogs.adobe.com/anjuonflex/files/2010/11/output.jpg" alt="" width="178" height="223" /></a></p>
<p>Hope this helps someone who is looking  for a simpler approach to achieve the same.</p>
<p>Thanks to my friend Divya , for bringing this issue up <img src='http://blogs.adobe.com/anjuonflex/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.adobe.com/anjuonflex/2010/11/29/to-add-superscript-or-subscript-in-label-flex-4/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Auto-Scrolling Issue in ADG while drag/drop</title>
		<link>http://blogs.adobe.com/anjuonflex/2010/08/08/auto-scrolling-issue-in-adg-while-dragdrop/</link>
		<comments>http://blogs.adobe.com/anjuonflex/2010/08/08/auto-scrolling-issue-in-adg-while-dragdrop/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 18:35:42 +0000</pubDate>
		<dc:creator>anjus</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blogs.adobe.com/anjuonflex/?p=6</guid>
		<description><![CDATA[As the title suggests, this is an article about the issue that you may encounter while using SDK 3.x  and AdvancedDataGrid. Unlike other list based components like TileList , DG etc, vertical scroll bar doesnt moves automatically to the last &#8230; <a href="http://blogs.adobe.com/anjuonflex/2010/08/08/auto-scrolling-issue-in-adg-while-dragdrop/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>As the title suggests, this is an article about the issue that you may encounter while using SDK 3.x  and AdvancedDataGrid.</p>
<p>Unlike other list based components like TileList , DG etc, vertical scroll bar doesnt moves automatically to the last of the  row item while drag/drop onto the ADG. </p>
<p>This can be an issue when you have a situation [and most of the time , it can be ] when you have only few visible rows and you want to drag and drop a row /item somewhere in that ADG , not necessarily between the current visible set , you expect that Scroll should move till the last row on its own.  In ADG it does not happens , because of one bug which have been already logged here.</p>
<p><a href="https://bugs.adobe.com/jira/browse/FLEXDMV-2471">https://bugs.adobe.com/jira/browse/FLEXDMV-2471</a>   &#8212; if you want to vote/keep a watch on to it.</p>
<p>Workaround is :</p>
<div id="comment-372979-open">
<div>Please override the function showDropFeedback and then</p>
<p>change this line<br />
if (collection)<br />
dragScroll();</p>
<p>To</p>
<p>if (collection)<br />
if (dragScrollingInterval == 0)<br />
dragScrollingInterval = setInterval(dragScroll, 15);</p></div>
<div>Hope this helps somebody facing this issue.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blogs.adobe.com/anjuonflex/2010/08/08/auto-scrolling-issue-in-adg-while-dragdrop/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Just to say hi !!!</title>
		<link>http://blogs.adobe.com/anjuonflex/2010/08/03/hello-world/</link>
		<comments>http://blogs.adobe.com/anjuonflex/2010/08/03/hello-world/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 20:45:19 +0000</pubDate>
		<dc:creator>anjus</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.adobe.com/anjuonflex/?p=1</guid>
		<description><![CDATA[This is going to be the beginning of sharing of what all I&#8217;ve learned so far working with such great people here in Adobe and my career so far &#8230; Wish me luck !!!!!!]]></description>
				<content:encoded><![CDATA[<p>This is going to be the beginning of sharing of what all I&#8217;ve learned so far working with such great people here in Adobe and my career so far &#8230;</p>
<p>Wish me luck !!!!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.adobe.com/anjuonflex/2010/08/03/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
