必须有比用..覆盖每个组件的 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。