0
如何按百分比缩放mc的X?as3 scaleX按mc尺寸的百分比
例如我有var百分比。它从零开始,到100.但mx.scaleX = 33;
将无法正常工作,它需要.33或.3但我的工作数字是0到100,我需要的百分比写在一种方式scaleX可以处理它。
// other code to get correct percent; // result is 0 through 100
yellowProgress.scaleX = percent;
yellowProgress.scaleX = percent/100; – SushiHangover