Openfl9.1.0 SWF3.0.2 Unable to use Assets.loadLibrary ZIP file

SyntaxError: JSON Parse error: Unexpected identifier "PK"

versions:
Openfl 9.1.0
Swf 3.0.2

It seems that it is not possible to load Zip files directly from Assets.loadLibrary.

@singmajesty

AssetBundle.loadFromFile("assets/MengSuo.zip").onComplete(function(bundle){
			var a:AnimateLibrary = cast lime.utils.AssetLibrary.fromBundle(bundle);
			a.load().onComplete(function(a){
				var mc = cast(a,AnimateLibrary).getMovieClip("Scene");
				this.addChild(mc);
			});
		});

This is OK! :grinning:

1 Like