-
-
Notifications
You must be signed in to change notification settings - Fork 418
Closed
Description
<?xml version="1.0" encoding="utf-8"?>
<project>
<meta title="TestPath" package="com.sample.testpath" version="1.0.0" company="Company Name" />
<app main="Main" path="Export" file="TestPath" />
<source path="Source" />
<haxelib name="openfl" />
<assets path="Assets" rename="assets" preload="false" embed="false"/>
</project>Asset file
Assets/hello.txt
package;
import openfl.display.Sprite;
class Main extends Sprite
{
public function new()
{
super();
var f = openfl.Assets.loadText('assets/hello.txt');
f.onError(e -> {
trace("ERROR");
trace(e);
});
f.onComplete(text -> {
trace('LOAD COMPLETE');
trace(text);
});
trace('Main created');
graphics.beginFill(0xFF0000);
graphics.drawCircle(200, 300, 50);
}
}lime build hl -debugand renamebintoфыва(non ascii cyryllic chars).- try to run app
- get this error
Uncaught exception: [lime.utils.Preloader] ERROR: There is no asset library with an ID of "default"
Called from lime.utils.$Log.error(lime/utils/Log.hx:37)
Called from lime.utils.Preloader.~updateProgress.3(lime/utils/Preloader.hx:293)
Called from lime.app.Future.onError(lime/app/Future.hx:156)
Called from lime.utils.Preloader.updateProgress(lime/utils/Preloader.hx:241)
Called from lime.utils.Preloader.load(lime/utils/Preloader.hx:183)
Called from $ApplicationMain.create(ApplicationMain.hx:135)
Called from $ApplicationMain.main(ApplicationMain.hx:26)
Called from .init(?:1)
Lime 8.1.1
Metadata
Metadata
Assignees
Labels
No labels