We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
按教程: class Main extends egret.DisplayObjectContainer{ public constructor() { super(); this.addEventListener(egret.Event.ADDED_TO_STAGE,this.onAddToStage,this); } private onAddToStage(event:egret.Event) { RES.addEventListener(RES.ResourceEvent.GROUP_COMPLETE, this.onGroupComplete, this); RES.loadConfig("resource/default.res.json", "resource/"); RES.loadGroup("preload"); } private onGroupComplete() { var img:egret.Bitmap = new egret.Bitmap(); img.texture = RES.getRes("egret_icon_png"); this.addChild(img); } } 运行后并没有显示图片
The text was updated successfully, but these errors were encountered:
这是哪篇文档的错误?能给个链接吗?
Sorry, something went wrong.
No branches or pull requests
按教程:
class Main extends egret.DisplayObjectContainer{
public constructor()
{
super();
this.addEventListener(egret.Event.ADDED_TO_STAGE,this.onAddToStage,this);
}
private onAddToStage(event:egret.Event) {
RES.addEventListener(RES.ResourceEvent.GROUP_COMPLETE, this.onGroupComplete, this);
RES.loadConfig("resource/default.res.json", "resource/");
RES.loadGroup("preload");
}
private onGroupComplete()
{
var img:egret.Bitmap = new egret.Bitmap();
img.texture = RES.getRes("egret_icon_png");
this.addChild(img);
}
}
运行后并没有显示图片
The text was updated successfully, but these errors were encountered: