<?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: Setting the value of a Flex Progress Bar</title>
	<atom:link href="http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sat, 11 Feb 2012 11:51:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Steve</title>
		<link>http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/comment-page-1/#comment-10182</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 18 Nov 2011 23:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/#comment-10182</guid>
		<description>Started working again after I posted the previous comment - I reloaded the page and it stopped again. Very strange...</description>
		<content:encoded><![CDATA[<p>Started working again after I posted the previous comment &#8211; I reloaded the page and it stopped again. Very strange&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/comment-page-1/#comment-10181</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 18 Nov 2011 23:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/#comment-10181</guid>
		<description>Not working for me either. When I drag the slider, nothing happens. I&#039;m assuming the progress is supposed to be updated, but it does not. I&#039;m using Firefox v8.0 and Mac 10.5.8 and my player version is MAC 10,2,152,33 (w/ a debug player) - hope this helps.</description>
		<content:encoded><![CDATA[<p>Not working for me either. When I drag the slider, nothing happens. I&#8217;m assuming the progress is supposed to be updated, but it does not. I&#8217;m using Firefox v8.0 and Mac 10.5.8 and my player version is MAC 10,2,152,33 (w/ a debug player) &#8211; hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edgars</title>
		<link>http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/comment-page-1/#comment-10031</link>
		<dc:creator>Edgars</dc:creator>
		<pubDate>Fri, 07 Oct 2011 23:46:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/#comment-10031</guid>
		<description>Add direction=&quot;right&quot; (or &quot;left&quot; if you prefer)



Works for me.</description>
		<content:encoded><![CDATA[<p>Add direction=&#8221;right&#8221; (or &#8220;left&#8221; if you prefer)</p>
<p>Works for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Palanivelrajan</title>
		<link>http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/comment-page-1/#comment-9519</link>
		<dc:creator>Palanivelrajan</dc:creator>
		<pubDate>Mon, 22 Aug 2011 10:28:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/#comment-9519</guid>
		<description>Hi i am doing one project in Adobe AIR..in this project i have to get values from the SAP server and to store it in local database...While doing this it take some 40 to 50 secs to upload all the datas to the loacl databse...so i want to use the progress bar to show how much % datas uploaded..but if i put the progressbar.setProgress() function inside a for loop...the final value only displayed...but i need the progress bar to show progress as the progress bar shown when we copying the data in windows...Is there any possiblities...</description>
		<content:encoded><![CDATA[<p>Hi i am doing one project in Adobe AIR..in this project i have to get values from the SAP server and to store it in local database&#8230;While doing this it take some 40 to 50 secs to upload all the datas to the loacl databse&#8230;so i want to use the progress bar to show how much % datas uploaded..but if i put the progressbar.setProgress() function inside a for loop&#8230;the final value only displayed&#8230;but i need the progress bar to show progress as the progress bar shown when we copying the data in windows&#8230;Is there any possiblities&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: reg</title>
		<link>http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/comment-page-1/#comment-7814</link>
		<dc:creator>reg</dc:creator>
		<pubDate>Fri, 28 May 2010 15:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/#comment-7814</guid>
		<description>:) That&#039;s is good :)</description>
		<content:encoded><![CDATA[<p>:) That&#8217;s is good :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/comment-page-1/#comment-7057</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Fri, 19 Feb 2010 04:35:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/#comment-7057</guid>
		<description>@Kola,

I typically use the &lt;code&gt;timer&lt;/code&gt; event to track when to update a progress bar and then use the &lt;code&gt;timerComplete&lt;/code&gt; event to track when the timer has finished.

Something like the following may help get you started:
&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;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;
        initialize=&quot;init();&quot;&gt;
    
    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.Alert;
            
            protected var timer3:Timer;
            
            protected function init():void {
                timer3 = new Timer(50 /*delay in ms*/, 150 /*repeatCount*/);
                timer3.addEventListener(TimerEvent.TIMER, timer3_timerHandler);
                timer3.addEventListener(TimerEvent.TIMER_COMPLETE, timer3_timerCompleteHandler);
            }
            
            protected function timer3_timerHandler(evt:TimerEvent):void {
                pBar.setProgress(timer3.currentCount, timer3.repeatCount);
            }
            
            protected function timer3_timerCompleteHandler(evt:TimerEvent):void {
                Alert.show(&quot;Timer done&quot;);
                timer3.reset();
            }

            protected function button1_clickHandler(evt:MouseEvent):void {
                if (timer3.running) {
                    timer3.stop();
                    timer3.reset();
                }
                timer3.start();
            }
        ]]&gt;
    &lt;/mx:Script&gt;
    
    &lt;mx:ProgressBar id=&quot;pBar&quot; label=&quot;%1 of %2 (%3%%)&quot; labelPlacement=&quot;center&quot; mode=&quot;manual&quot; /&gt;
    &lt;mx:Button id=&quot;button1&quot; label=&quot;start timer&quot; click=&quot;button1_clickHandler(event);&quot; /&gt;
    
&lt;/mx:Application&gt;
&lt;/pre&gt;

There should also be a few other Timer examples around here at http://blog.flexexamples.com/category/timer/ or just search for &quot;Timer&quot; in the search box above: http://blog.flexexamples.com/?s=Timer

Peter</description>
		<content:encoded><![CDATA[<p>@Kola,</p>
<p>I typically use the <code>timer</code> event to track when to update a progress bar and then use the <code>timerComplete</code> event to track when the timer has finished.</p>
<p>Something like the following may help get you started:</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>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span></span>
<span style="color: #000000;">        initialize=<span style="color: #ff0000;">&quot;init();&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 var timer3:Timer;</span>
&nbsp;
<span style="color: #339933;">            protected function init():void {</span>
<span style="color: #339933;">                timer3 = new Timer(50 /*delay in ms*/, 150 /*repeatCount*/);</span>
<span style="color: #339933;">                timer3.addEventListener(TimerEvent.TIMER, timer3_timerHandler);</span>
<span style="color: #339933;">                timer3.addEventListener(TimerEvent.TIMER_COMPLETE, timer3_timerCompleteHandler);</span>
<span style="color: #339933;">            }</span>
&nbsp;
<span style="color: #339933;">            protected function timer3_timerHandler(evt:TimerEvent):void {</span>
<span style="color: #339933;">                pBar.setProgress(timer3.currentCount, timer3.repeatCount);</span>
<span style="color: #339933;">            }</span>
&nbsp;
<span style="color: #339933;">            protected function timer3_timerCompleteHandler(evt:TimerEvent):void {</span>
<span style="color: #339933;">                Alert.show(&quot;Timer done&quot;);</span>
<span style="color: #339933;">                timer3.reset();</span>
<span style="color: #339933;">            }</span>
&nbsp;
<span style="color: #339933;">            protected function button1_clickHandler(evt:MouseEvent):void {</span>
<span style="color: #339933;">                if (timer3.running) {</span>
<span style="color: #339933;">                    timer3.stop();</span>
<span style="color: #339933;">                    timer3.reset();</span>
<span style="color: #339933;">                }</span>
<span style="color: #339933;">                timer3.start();</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:ProgressBar</span> id=<span style="color: #ff0000;">&quot;pBar&quot;</span> label=<span style="color: #ff0000;">&quot;%1 of %2 (%3%%)&quot;</span> labelPlacement=<span style="color: #ff0000;">&quot;center&quot;</span> mode=<span style="color: #ff0000;">&quot;manual&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> id=<span style="color: #ff0000;">&quot;button1&quot;</span> label=<span style="color: #ff0000;">&quot;start timer&quot;</span> click=<span style="color: #ff0000;">&quot;button1_clickHandler(event);&quot;</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>There should also be a few other Timer examples around here at <a href="http://blog.flexexamples.com/category/timer/" rel="nofollow">http://blog.flexexamples.com/category/timer/</a> or just search for &#8220;Timer&#8221; in the search box above: <a href="http://blog.flexexamples.com/?s=Timer" rel="nofollow">http://blog.flexexamples.com/?s=Timer</a></p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kola</title>
		<link>http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/comment-page-1/#comment-7056</link>
		<dc:creator>Kola</dc:creator>
		<pubDate>Thu, 18 Feb 2010 23:33:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/#comment-7056</guid>
		<description>Someone can help me...?
I have Tile List with buttons and their lables, When I am doing itemRollOver ( I am sending rolled button label to the text editor with time delay. How to set proegressBar which will show me progress of this timer event?? Please help
 		private var currentValue:String;
      		private function rollOver(e:TimerEvent):void{
        	 rte.text+=currentValue;
         	}
     		public var timer3:Timer;
		 private function TileListSend(e:ListEvent):void{
			   rte.text+= e.itemRenderer.data.label;
			   timer3.addEventListener(TimerEvent.TIMER, rollOver);
			   timer3.start();</description>
		<content:encoded><![CDATA[<p>Someone can help me&#8230;?<br />
I have Tile List with buttons and their lables, When I am doing itemRollOver ( I am sending rolled button label to the text editor with time delay. How to set proegressBar which will show me progress of this timer event?? Please help<br />
 		private var currentValue:String;<br />
      		private function rollOver(e:TimerEvent):void{<br />
        	 rte.text+=currentValue;<br />
         	}<br />
     		public var timer3:Timer;<br />
		 private function TileListSend(e:ListEvent):void{<br />
			   rte.text+= e.itemRenderer.data.label;<br />
			   timer3.addEventListener(TimerEvent.TIMER, rollOver);<br />
			   timer3.start();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bron Davies</title>
		<link>http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/comment-page-1/#comment-6850</link>
		<dc:creator>Bron Davies</dc:creator>
		<pubDate>Tue, 26 Jan 2010 18:09:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/#comment-6850</guid>
		<description>the only problem with this is that you need to set mode=&quot;manual&quot; as well as the minimum and maximum values &lt;b&gt;in actionscript&lt;/b&gt; before calling setProgress.  It appears to be a bug in the ProgressBar component when using manual mode.  If you don&#039;t then it will work sometimes and other times not depending on what you use it for.</description>
		<content:encoded><![CDATA[<p>the only problem with this is that you need to set mode=&#8221;manual&#8221; as well as the minimum and maximum values <b>in actionscript</b> before calling setProgress.  It appears to be a bug in the ProgressBar component when using manual mode.  If you don&#8217;t then it will work sometimes and other times not depending on what you use it for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ruth</title>
		<link>http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/comment-page-1/#comment-6721</link>
		<dc:creator>ruth</dc:creator>
		<pubDate>Mon, 04 Jan 2010 13:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/#comment-6721</guid>
		<description>ain&#039;t working.</description>
		<content:encoded><![CDATA[<p>ain&#8217;t working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EXAE</title>
		<link>http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/comment-page-1/#comment-6235</link>
		<dc:creator>EXAE</dc:creator>
		<pubDate>Wed, 04 Nov 2009 18:22:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/16/setting-the-value-of-a-flex-progress-bar/#comment-6235</guid>
		<description>This example work 100% : 

http://livedocs.adobe.com/flex/3/langref/mx/controls/ProgressBar.html</description>
		<content:encoded><![CDATA[<p>This example work 100% : </p>
<p><a href="http://livedocs.adobe.com/flex/3/langref/mx/controls/ProgressBar.html" rel="nofollow">http://livedocs.adobe.com/flex/3/langref/mx/controls/ProgressBar.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

