0
我有以下对象:阿尔特图像动能
thegirls.onload = function() {
thegirls = new Kinetic.Image({
x: 50,
y: 30,
image: thegirls,
width: 106,
height: 118
});
layer2.add(thegirls);
layer2.draw();
}
thegirls.src = "01.png";
我想打一个函数来改变图像,但我不能改变图片
代码:
function changegirls(){
thegirls.src = "02.png";
layer2.draw();
}
感谢所有
完美,这是工作,感谢markE – user3178951