<?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>joel&#039;s FLEX blog &#187; ProgressBar</title>
	<atom:link href="http://blog.desizen.com/TAG/progressbar/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.desizen.com</link>
	<description>FLEX,网络安全,Linux</description>
	<lastBuildDate>Fri, 13 May 2011 02:18:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>FLEX例子之进程条(ProgressBar)</title>
		<link>http://blog.desizen.com/4lone/568.html</link>
		<comments>http://blog.desizen.com/4lone/568.html#comments</comments>
		<pubDate>Fri, 06 Mar 2009 15:25:08 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[FLEX]]></category>
		<category><![CDATA[ProgressBar]]></category>
		<category><![CDATA[TourDeFlex]]></category>
		<category><![CDATA[例子]]></category>

		<guid isPermaLink="false">http://www.joelove.cn/?p=568</guid>
		<description><![CDATA[这个例子进行的是Tourdeflex:UI Controls:Other Controls:ProgressBar 简介: The ProgressBar control provides a visual representation of the progress of a task over time. 例子: &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;top&#34; horizontalAlign=&#34;center&#34; backgroundGradientColors=&#34;[0x000000,0x323232]&#34; paddingTop=&#34;0&#34; viewSourceURL=&#34;srcview/index.html&#34;&#62; &#160; &#60;mx:Script&#62; &#60;![CDATA[ &#160; private var j:uint=10; &#160; // Event handler function to set the value of the // ProgressBar control. private function runit():void [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子进行的是<a href="http://blog.desizen.com/TAG/tourdeflex" class="st_tag internal_tag" rel="tag" title="Posts tagged with TourDeFlex">Tourdeflex</a>:UI Controls:Other Controls:<a href="http://blog.desizen.com/TAG/progressbar" class="st_tag internal_tag" rel="tag" title="Posts tagged with ProgressBar">ProgressBar</a><br />
简介:<br />
The <a href="http://blog.desizen.com/TAG/progressbar" class="st_tag internal_tag" rel="tag" title="Posts tagged with ProgressBar">ProgressBar</a> control provides a visual representation of the progress of a task over time.<br />
例子:</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> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&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>
&nbsp;
<span style="color: #339933;">          private var j:uint=10;</span>
&nbsp;
<span style="color: #339933;">          // Event handler function to set the value of the </span>
<span style="color: #339933;">          // ProgressBar control.</span>
<span style="color: #339933;">          private function runit():void</span>
<span style="color: #339933;">          {</span>
<span style="color: #339933;">              if(j&lt;=100)</span>
<span style="color: #339933;">              {</span>
<span style="color: #339933;">                 bar.setProgress(j,100);</span>
<span style="color: #339933;">                 bar.label= &quot;CurrentProgress&quot; + &quot; &quot; + j + &quot;%&quot;;</span>
<span style="color: #339933;">                 j+=10;</span>
<span style="color: #339933;">              }</span>
<span style="color: #339933;">              if(j&gt;100)</span>
<span style="color: #339933;">              {</span>
<span style="color: #339933;">                 j=0;</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:Panel</span> title=<span style="color: #ff0000;">&quot;ProgressBar Control&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;10&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span></span>
<span style="color: #000000;">            text=<span style="color: #ff0000;">&quot;Click the button to increment the progress bar.&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;Speed&quot;</span> label=<span style="color: #ff0000;">&quot;Run&quot;</span> click=<span style="color: #ff0000;">&quot;runit();&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ProgressBar</span> id=<span style="color: #ff0000;">&quot;bar&quot;</span> labelPlacement=<span style="color: #ff0000;">&quot;bottom&quot;</span> themeColor=<span style="color: #ff0000;">&quot;#EE1122&quot;</span> minimum=<span style="color: #ff0000;">&quot;0&quot;</span> visible=<span style="color: #ff0000;">&quot;true&quot;</span> maximum=<span style="color: #ff0000;">&quot;100&quot;</span></span>
<span style="color: #000000;">             color=<span style="color: #ff0000;">&quot;0x323232&quot;</span>    label=<span style="color: #ff0000;">&quot;CurrentProgress 0%&quot;</span> direction=<span style="color: #ff0000;">&quot;right&quot;</span> mode=<span style="color: #ff0000;">&quot;manual&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


	标签：<a href="http://blog.desizen.com/TAG/flex" title="FLEX" rel="tag">FLEX</a>, <a href="http://blog.desizen.com/TAG/progressbar" title="ProgressBar" rel="tag">ProgressBar</a>, <a href="http://blog.desizen.com/TAG/tourdeflex" title="TourDeFlex" rel="tag">TourDeFlex</a>, <a href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90" title="例子" rel="tag">例子</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.desizen.com/4lone/271.html" title="FLEX例子之下拉列表框(ComboBox) (2008年12月23日)">FLEX例子之下拉列表框(ComboBox)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/549.html" title="FLEX例子之弹出提示窗口(Alert) (2009年3月3日)">FLEX例子之弹出提示窗口(Alert)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/392.html" title="贴近站长的FLEX应用案例 (2009年1月14日)">贴近站长的FLEX应用案例</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/539.html" title="FLEX例子之OLAP数据表(OLAPDataGrid) (2009年2月25日)">FLEX例子之OLAP数据表(OLAPDataGrid)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/564.html" title="FLEX例子之图片控件(Image) (2009年3月6日)">FLEX例子之图片控件(Image)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/593.html" title="FLEX例子之Accordion(折叠式面板) (2009年3月10日)">FLEX例子之Accordion(折叠式面板)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/131.html" title="常用CSS缩写语法总结 (2008年10月8日)">常用CSS缩写语法总结</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/41.html" title="FLEX 学习资料汇总 (2008年8月14日)">FLEX 学习资料汇总</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/59.html" title="flex登陆框实例 (2008年8月25日)">flex登陆框实例</a> (3)</li>
	<li><a href="http://blog.desizen.com/4lone/292.html" title="FLEX例子之数字调节器(NumericStepper) (2008年12月26日)">FLEX例子之数字调节器(NumericStepper)</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.desizen.com/4lone/568.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

