I cannot get swf asset libraries to load when I run the debugger in VS Code.
I’m just trying to run the NyanCat sample.
<?xml version="1.0" encoding="utf-8"?>
<project>
<meta title="Nyan Cat" package="org.openfl.samples.nyancat" version="1.0.0" company="OpenFL" />
<app main="Main" path="Export" file="NyanCat" />
<window width="400" height="400" fps="30" />
<source path="Source" />
<haxelib name="openfl" />
<library path="Assets/library.swf" preload="true" />
</project>
Using Hashlink Debugger in VSCode with this configuration:
{
"name": "HashLink (launch)",
"request": "launch",
"type": "hl",
"preLaunchTask": "lime: build hl -debug",
"cwd": "${workspaceFolder}/Export/hl/bin",
"program": "${workspaceFolder}/Export/hl/obj/ApplicationMain.hl",
}
It runs but I get a runtime error:
Uncaught exception: [lime.utils.Preloader] ERROR: There is no asset library with an ID of "library"
If I try a default config ("cwd": "${workspaceFolder}" & no "program") then it complains about missing lime.hdll
