hi folks,
i have some problems using Lime on this functions targeting html on neko work fine
file = Assets.getBytes(âassets/Blade.md2â);
var data = Assets.getText(âassets/blade.txtâ);
but if i use Openfl works some one?
hi folks,
i have some problems using Lime on this functions targeting html on neko work fine
file = Assets.getBytes(âassets/Blade.md2â);
var data = Assets.getText(âassets/blade.txtâ);
but if i use Openfl works some one?
What are the errors?
hi Josh,
TypeError: this.file is null on Mozilla
Uncaught TypeError: Cannot set property âlittleEndianâ of null on chrome
OpenFL (without -Dlegacy) uses lime.Assets getBytes and getText directly, so Iâm not sure why those would work differently.
Would it be any trouble to make a simple sample that reproduces the problem?
Ah! Got it working
Try overriding onPreloadComplete
in your âcom.gdx.Appâ class.
In HTML5, the window is created before the preloader has finished loading, so a call to getBytes
fails
woow josh you the man
public override function onPreloadComplete()
{
start = true;
OnStart();
}
and i can track the assets loader very god .