Actionscript 3 drawRect缩放2.3

Actionscript 3 drawRect缩放2.3,actionscript-3,Actionscript 3,我正在子类化一个Sprite,在我调用的drawRectangle方法中 graphics.beginFill(0xFFFFFF, 1); graphics.drawRect(0,0,100,100) graphics.beginFill(0x333333, 1); graphics.drawRect(10,10,80,80); graphics.beginFill(0x000000, 1); graphics.drawRect(20,20,60,60); 然后在客户端扩展Sprite调用

我正在子类化一个Sprite,在我调用的drawRectangle方法中

graphics.beginFill(0xFFFFFF, 1);
graphics.drawRect(0,0,100,100)

graphics.beginFill(0x333333, 1);
graphics.drawRect(10,10,80,80);

graphics.beginFill(0x000000, 1);
graphics.drawRect(20,20,60,60);
然后在客户端扩展Sprite调用 addChild(myRect); myRect.height=100; myRect.width=100

但最终的外矩形是233像素高和宽

任何想法

我是个笨蛋

问候,,
shwell.

否,找到解决方案后,需要调用stage.setScaleMode=StageScaleMode.No\u SCALE。谢谢您的回复。

您是否将任何子项添加到myRect?