flex 进度条loading改成中文?在线等!

caofaping 2010-03-09 11:30:09

如题!最好能说清楚点。我是新手!
...全文
477 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
syeia 2010-03-09
  • 打赏
  • 举报
回复
<?xml version="1.0"?>
<!-- Simple example to demonstrate the ProgressBar control. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

<mx:Script>
<![CDATA[
private var j:uint=10;

// Event handler function to set the value of the
// ProgressBar control.
private function runit():void
{
if (j <= 100)
{
bar.setProgress(j, 100);
bar.label="载入" + " " + j + "%";
j+=10;
}
if (j > 100)
{
j=0;
}
}
]]>
</mx:Script>

<mx:Panel title="ProgressBar Control Example"
height="75%"
width="75%"
paddingTop="10"
paddingBottom="10"
paddingLeft="10"
paddingRight="10">

<mx:Label width="100%"
color="blue"
text="Click the button to increment the progress bar."/>
<mx:Button id="Speed"
label="Run"
click="runit();"/>

<mx:ProgressBar id="bar"
labelPlacement="bottom"
themeColor="#F20D7A"
label="载入 %3%%"
minimum="0"
height="50"
visible="true"
maximum="100"
direction="right"
mode="manual"
width="100%"/>

</mx:Panel>
</mx:Application>

就吧loding-->中文?
CCjian 2010-03-09
  • 打赏
  • 举报
回复
引用 2 楼 onlylau 的回复:
Java codepackage com.pricklythistle.common
{import mx.preloaders.DownloadProgressBar;publicclass CustomDownloadProgressBarextends DownloadProgressBar
{public function CustomDownloadProgressBar()
{this.downloadingLabel="正在加载中...";
initializingLabel="初始化中...";
}

}
}<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()" preloader="com.pricklythistle.common.CustomDownloadProgressBar">
....

你说的是这个??



DD
水中影子 2010-03-09
  • 打赏
  • 举报
回复
楼主说的是loading label吗?
OnlyLau 2010-03-09
  • 打赏
  • 举报
回复

package com.pricklythistle.common
{
import mx.preloaders.DownloadProgressBar;

public class CustomDownloadProgressBar extends DownloadProgressBar
{
public function CustomDownloadProgressBar()
{
this.downloadingLabel = "正在加载中...";
initializingLabel = "初始化中...";
}

}
}


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()" preloader="com.pricklythistle.common.CustomDownloadProgressBar">
....


你说的是这个??

4,328

社区成员

发帖
与我相关
我的任务
社区描述
多媒体/设计 Flex
社区管理员
  • Flex
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧