Monica
public function Test1View()
{
Laya.timer.loop(10,this,draw);
}
private function draw():void
{
texture = Laya.loader.getRes("comp/lhjicon_5.png");
var temp:Texture = Texture.createFromTexture(texture,0,0,texture.sourceWidth/2,texture.height/2);
IconSpr.graphics.drawTexture(temp,0,0,temp.sourceWidth,temp.height);
temp.destroy(true);
}
这样 一样会报错