<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Auto scrolling the contents of a VGroup container in Flex 4</title>
	<atom:link href="http://blog.flexexamples.com/2009/11/02/auto-scrolling-the-contents-of-a-vgroup-container-in-flex-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2009/11/02/auto-scrolling-the-contents-of-a-vgroup-container-in-flex-4/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Fri, 19 Mar 2010 20:35:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jason Bailey</title>
		<link>http://blog.flexexamples.com/2009/11/02/auto-scrolling-the-contents-of-a-vgroup-container-in-flex-4/comment-page-1/#comment-6517</link>
		<dc:creator>Jason Bailey</dc:creator>
		<pubDate>Thu, 03 Dec 2009 19:02:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2136#comment-6517</guid>
		<description>Thanks for the tips, new to flex 4 and was having an awful time figuring out the programmatic scrolling... I was missing the contentHeight value.</description>
		<content:encoded><![CDATA[<p>Thanks for the tips, new to flex 4 and was having an awful time figuring out the programmatic scrolling&#8230; I was missing the contentHeight value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sankara narayanan</title>
		<link>http://blog.flexexamples.com/2009/11/02/auto-scrolling-the-contents-of-a-vgroup-container-in-flex-4/comment-page-1/#comment-6229</link>
		<dc:creator>Sankara narayanan</dc:creator>
		<pubDate>Wed, 04 Nov 2009 06:18:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2136#comment-6229</guid>
		<description>Thanks , Peter. Its working fine with callLater().

But we had a problem on setting the focus back to the first field(from which we are thrwong the alert).
Now we got it thro Close Handlers.

&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;&gt;
    
    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.events.CloseEvent;
            import mx.controls.Alert;
            
            protected function onFocOut():void {
                // Alert.show(&quot;IS THIS ALERT MODAL ?&quot;,null,null,null,aa,null,null);
                Alert.show(&quot;IS THIS ALERT MODAL ?&quot;, &#039;WARNING&#039; ,Alert.OK,null,aa,null);
            }
            private function aa(closobj:CloseEvent) {
                if(closobj.detail == Alert.OK) {
                    //one.text = &#039;SANKAR&#039;;
                    one.setFocus();
                }
            }
        ]]&gt;
    &lt;/mx:Script&gt;
    
    &lt;mx:TextInput id=&quot;one&quot; focusOut=&quot;callLater(onFocOut);&quot;/&gt;
    &lt;mx:TextInput/&gt;
    
&lt;/mx:Application&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Thanks , Peter. Its working fine with callLater().</p>
<p>But we had a problem on setting the focus back to the first field(from which we are thrwong the alert).<br />
Now we got it thro Close Handlers.</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            import mx.events.CloseEvent;</span>
<span style="color: #339933;">            import mx.controls.Alert;</span>
&nbsp;
<span style="color: #339933;">            protected function onFocOut():void {</span>
<span style="color: #339933;">                // Alert.show(&quot;IS THIS ALERT MODAL ?&quot;,null,null,null,aa,null,null);</span>
<span style="color: #339933;">                Alert.show(&quot;IS THIS ALERT MODAL ?&quot;, 'WARNING' ,Alert.OK,null,aa,null);</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">            private function aa(closobj:CloseEvent) {</span>
<span style="color: #339933;">                if(closobj.detail == Alert.OK) {</span>
<span style="color: #339933;">                    //one.text = 'SANKAR';</span>
<span style="color: #339933;">                    one.setFocus();</span>
<span style="color: #339933;">                }</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextInput</span> id=<span style="color: #ff0000;">&quot;one&quot;</span> focusOut=<span style="color: #ff0000;">&quot;callLater(onFocOut);&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextInput</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2009/11/02/auto-scrolling-the-contents-of-a-vgroup-container-in-flex-4/comment-page-1/#comment-6214</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 03 Nov 2009 15:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2136#comment-6214</guid>
		<description>@Sankara narayanan,

Seems to be a timing issue between the focus manager and the popup manager. You can try using the &lt;code&gt;callLater()&lt;/code&gt; method to delay the Alert slightly:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.Alert;

            protected function onFocOut():void {
                Alert.show(&quot;IS THIS ALERT MODAL ?&quot;);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:TextInput focusOut=&quot;callLater(onFocOut);&quot;/&gt;
    &lt;mx:TextInput/&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>@Sankara narayanan,</p>
<p>Seems to be a timing issue between the focus manager and the popup manager. You can try using the <code>callLater()</code> method to delay the Alert slightly:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            import mx.controls.Alert;</span>
&nbsp;
<span style="color: #339933;">            protected function onFocOut():void {</span>
<span style="color: #339933;">                Alert.show(&quot;IS THIS ALERT MODAL ?&quot;);</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextInput</span> focusOut=<span style="color: #ff0000;">&quot;callLater(onFocOut);&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextInput</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sankara narayanan</title>
		<link>http://blog.flexexamples.com/2009/11/02/auto-scrolling-the-contents-of-a-vgroup-container-in-flex-4/comment-page-1/#comment-6211</link>
		<dc:creator>Sankara narayanan</dc:creator>
		<pubDate>Tue, 03 Nov 2009 05:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2136#comment-6211</guid>
		<description>Hi peter,
I have one doubt.
How to make a alert truly(?!) modal?
That is user should not be able to type any thing in the field which has the current focus , while the alert is being thrown.

&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; layout=&quot;vertical&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.Alert;
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:TextInput focusOut=&quot;Alert.show(&#039;IS THIS ALERT MODAL ?&#039;);&quot;/&gt;
    &lt;mx:TextInput/&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

In this if we are changing the focus from field1 to field2,
The alert is thrown.But the user can type things in field2.
How to do prevent this? Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi peter,<br />
I have one doubt.<br />
How to make a alert truly(?!) modal?<br />
That is user should not be able to type any thing in the field which has the current focus , while the alert is being thrown.</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> 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: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            import mx.controls.Alert;</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextInput</span> focusOut=<span style="color: #ff0000;">&quot;Alert.show('IS THIS ALERT MODAL ?');&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextInput</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>In this if we are changing the focus from field1 to field2,<br />
The alert is thrown.But the user can type things in field2.<br />
How to do prevent this? Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
