SWF lib error and latest openfl 3.0.0.-2

Can’t compile my project with latest openfl update. Got an error with swf lib:

 - Running command: haxe Export/windows/cpp/haxe/debug.hxml -D no_console
C:/HaxeToolkit/haxe/lib/swf/1,8,1/format/swf/instance/Bitmap.hx:153: characters
18-38 : Class<openfl._legacy.display.BitmapData> has no field fromBytes
C:/HaxeToolkit/haxe/lib/swf/1,8,1/format/swf/instance/Bitmap.hx:162: characters
18-38 : Class<openfl._legacy.display.BitmapData> has no field fromBytes
C:/HaxeToolkit/haxe/lib/swf/1,8,1/format/swf/instance/Bitmap.hx:188: characters
16-36 : Class<openfl._legacy.display.BitmapData> has no field fromBytes

Looks like it need a small fix :slight_smile:

Is your SWF lib up-to-date as well?

Yes, it is. But sorry, looks like with SWF lib all is fine.

I got this error when I attach haxeui lib into project.
Found this in dependencies of haxeui:

<set name="openfl-legacy" unless="web"/> 

So that’s why error is coming, when I trying to build with new openfl.

:smile:

This might be fixed with the newer Lime, OpenFL and SWF releases. Let me know if you still have trouble!