0
저는 일종의 게임을 만들기 위해 easeljs 자바 스크립트로 작업하고 있습니다. 이 예제를 사용하고 있습니다 : http://www.createjs.com/#!/EaselJS/demos/game그래픽 BitMapFill TypeError
보시다시피 스페이서가 있습니다. 이 그래픽 객체 :
this.graphics.beginStroke("#FFFFFF");
나는이 같은 이미지로 배경을 채울 싶습니다
var bitmap = new createjs.Bitmap("http://nielsvroman.be/twitter/root/easeljs/image.png");
this.graphics.beginBitmapFill(bitmap, "no-repeat");
하지만 난 항상이 오류를 얻을 :
Uncaught TypeError: Type error
아무도 내가 뭘 잘못하고 있는지 알아?