StupidBeauty
Read times:513Posted at:Fri Dec 21 16:56:57 2012
- no title specified

转载使用 ProgressBar 组件

ProgressBar要设成手动模式才能 用自己的代码控制其进度值。

http://help.adobe.com/zh_CN/as3/components/WS5b3ccc516d4fbf351e63e3d118a9c65b32-7fa4.html

亮点:

aPb.mode = ProgressBarMode.MANUAL;

progLabel.setSize(150, 22);

progLabel.move(180, 150);

progLabel.text = "";

aNs.move(220, 215);

aNs.maximum = 250;

aNs.minimum = 0;

aNs.stepSize = 1;

aNs.value = 0;

aNs.addEventListener(Event.CHANGE, nsChangeHandler);

function nsChangeHandler(event:Event):void {

aPb.setProgress(aNs.value, aNs.maximum);

progLabel.text = "Percent of progress = " + int(aPb.percentComplete) + "%";

}

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4