酒吧充满麦克风活动水平的价值

时间:2013-06-20 21:53:57

标签: actionscript-3 actionscript microphone

这是一个条形码的代码,其中填充了麦克风活动级别的值,问题是当条形图抬起时它开始填充到右侧,而不是仅仅移动到左侧。 / p>

这是代码:

**micaux** is just the total of mic.activityLevel
**bar** is the borders of the raising bar
**cor2** is the bar that i want to fill

if ( micaux > 0 ) {
         soundbox.text = String(micaux);
         bar.cor2.x +=  mic.activityLevel / 1000;
         bar.cor2.scaleX +=  mic.activityLevel /1000; }

我把应用程序的打印屏幕工作了,会发生什么:

screen capture

0 个答案:

没有答案