0

混乱しています。行列データ型を this.graphics.beginBitmapFill(); に渡しました。そして、型の値の暗黙的な強制を取得します。以下は私のコードです。

var theMatrix:Matrix;
            theMatrix = new Matrix();
            this.graphics.beginBitmapFill(tileImage,theMatrix.translate(30,0));
            this.graphics.endFill();

そして、次のエラー小枝

1067: Implicit coercion of a value of type void to an unrelated type flash.geom:Matrix.
4

1 に答える 1

1

何も返さないbeginBitmapFillパラメータを関数に渡すのは正常です( )theMatrix.translate(30,0)void

代わりにこれを行います:

theMatrix.translate(30,0);
this.graphics.beginBitmapFill(tileImage,theMatrix);
于 2009-12-31T01:35:40.003 に答える