We have been hard at work preparing our seventh major release, but in addition to the ordinary improvements and refinements, this release opens up an entirely new way to use OpenFL.
I read something about being able to use the DOM without making all the game run in the DOM. Is there any example of how to do this? (Did I misunderstand?)
First, the changes make it possible to select a DOM renderer without rebuilding OpenFL. This is important, because the NPM version of OpenFL does not have defines. However, you can use the DOM target, and blend in the canvas renderer by using cacheAsBitmap = true on an object, or bitmapData.draw
Into your “src/openfl/display/MovieClip.hx” file in your local install. It may likely be located at “C:\HaxeToolkit\haxe\lib\openfl\7,0,0\src\openfl\display” or similar
The types are “zip”, “gzip”, “deflate” or “pack” / “pak”. You can use library="default" to apply it to the default (unnamed) library if you wish.
The “pack” type blobs assets together, but does not compress. “zip” is the same as “gzip” I believe, for gzip compression, and “deflate” uses deflate compression