-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Description
按教程:
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);
}
}
运行后并没有显示图片
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels