这是一个条形码的代码,其中填充了麦克风活动级别的值,问题是当条形图抬起时它开始填充到右侧,而不是仅仅移动到左侧。 / 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; }
我把应用程序的打印屏幕工作了,会发生什么: