Im confused, I passed a matrix datatype into the this.graphics.beginBitmapFill(); and i get Implici开发者_如何学Ct coercion of a value of type. below is my code.
var theMatrix:Matrix;
theMatrix = new Matrix();
this.graphics.beginBitmapFill(tileImage,theMatrix.translate(30,0));
this.graphics.endFill();
and the followig error sprigs
1067: Implicit coercion of a value of type void to an unrelated type flash.geom:Matrix.
It's normal you are passing to the beginBitmapFill
function a parameter theMatrix.translate(30,0)
who return nothing (void
)
do this instead:
theMatrix.translate(30,0);
this.graphics.beginBitmapFill(tileImage,theMatrix);
精彩评论