0

我正在子类化一个 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 像素高和宽???

有任何想法吗,

我是菜鸟。

问候,嘘。

4

1 回答 1

1

No, have since found the solution, a call to stage.setScaleMode = StageScaleMode.NO_SCALE is required. Thanks for the reply.

于 2013-07-21T10:49:12.660 回答