必须有一个更好的方法来做到这一点,而不是用..覆盖每个组件的updateDisplayList。
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth, unscaledHeight);
var componentWithScaling:UIComponent = this.parent as UIComponent;
while(componentWithScaling.scaleX != 1)
{
componentWithScaling = componentWithScaling.parent as UIComponent;
}
var scaleXThatIWant:Number = componentWithScaling.scaleX;
}
如果我不使用单个顶级(ish)级别比例(注意它没有设置在舞台级别),我觉得这将非常困难,因为倍数不会等于1.