开发者

How can i make a sprite with intercambiable images

开发者 https://www.devze.com 2023-03-05 09:19 出处:网络
How can i get sprite thats up开发者_StackOverflow中文版dates the image with this interface? public class DinImageSprite extends Sprite

How can i get sprite thats up开发者_StackOverflow中文版dates the image with this interface?

public class DinImageSprite extends Sprite
{
    public function DinImageSprite() { 
        super(); 
    }

    public setImage(a:Class) {

    }
}

Tanks


Edit your question and elaborate more on what you are passing into the set image function. Or you can be more vague so we can keep on guessing.

public setImage(a:Image) {
  this.addChild( a );
}
0

精彩评论

暂无评论...
验证码 换一张
取 消