【问题标题】:Loading progressbar in flex在flex中加载进度条
【发布时间】:2011-06-04 05:33:31
【问题描述】:

下面的代码有什么问题,我得到的进度条只是加载。

  <?xml version="1.0" encoding="utf-8"?>
 <!-- http://blog.flexexamples.com/2009/02/01/setting-the-bar-color-on-the-progressbar-control-in-flex/ -->
 <mx:Application name="ProgressBar_barColor_test"
    xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical"
    verticalAlign="middle"
    backgroundColor="white">

<mx:Script>
    <![CDATA[
        import mx.events.ColorPickerEvent;

        private function colorPicker_change(evt:ColorPickerEvent):void {
            progressBar.setStyle("barColor", evt.color);
        }
    ]]>
</mx:Script>

<mx:ApplicationControlBar dock="true">
    <mx:Form styleName="plain">
        <mx:FormItem label="barColor:">
            <mx:ColorPicker id="colorPicker"
                    selectedColor="red"
                    change="colorPicker_change(event);" />
        </mx:FormItem>
    </mx:Form>
</mx:ApplicationControlBar>

<mx:ProgressBar id="progressBar"
        indeterminate="true"
        labelPlacement="center"
        height="100" />

 </mx:Application>

【问题讨论】:

  • 进度条应该做什么而不是?

标签: apache-flex actionscript-3 mxml mxmlc


【解决方案1】:

通过“加载”我假设您的意思是进度条没有显示任何特定的进度。这是因为您将进度条设置为不确定,这意味着它不会显示进度,而只会以动画形式通知用户正在发生进度,但没有任何具体数量。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-10-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-13
    • 1970-01-01
    • 2018-04-13
    相关资源
    最近更新 更多