New to OpenFL, trouble loading SWF

Hey everyone,
I’m new to using Haxe / OpenFL and I’m trying to load a SWF into my project. I followed the example in NyanCat but it crashes when it tries to load.

The error is [Fault] exception, information=TypeError: Error #2007: Parameter url must be non-null.

I’m not sure why this is happening, but in as3 it generally means that you’re passing null into the Loader or URLRequest. The weird part is that if I change the type to “swflite” in the library embed, it loads properly.

My Directives array:
openfl=3.3.3
lime=2.6.2
actuate=1.8.6
swf=2.0.2
openfl-next
tools=2.6.2
no-compilation
openfl-flash
web
display

Here’s a copy of my XML:

<?xml version="1.0" encoding="utf-8"?>
<!-- metadata, make sure 'package' is at least 3 segments (ie. com.mycompany.myproject) -->
<meta title="TestGame" package="TestGame" version="1.0.0" company="Patrick Wood" />

<!-- output -->
<app main="Main" file="TestGame" path="bin" />

<window background="#CCCCCC" fps="60" />
<window width="960" height="720" unless="mobile" />
<window orientation="landscape" vsync="false" antialiasing="0" if="cpp" />

<!-- classpath, haxe libs -->
<source path="src" />
<haxelib name="openfl" />
<haxelib name="actuate" />
<haxelib name="swf" />

<library path="assets/library.swf" preload="true" generate="true" />

<!-- assets -->
<icon path="assets/openfl.svg" />
<assets path="assets/" include="*.swf" />

<!-- optimize output
<haxeflag name="-dce full" /> -->

This is a minor regression that was fixed today:

You can patch your copy or wait for the next release soon. Sorry for the trouble! :slight_smile: