I have got 3 swf files as library in assets folder. I need to use 3 swf because there is swf size limit (10mb probably) with open-fl as I remember about the error I got.
In project.xml I have it like this:
<library path="assets/game-assets1.swf" preload="true" />
<library path="assets/game-assets2.swf" preload="true" />
<library path="assets/game-assets3.swf" preload="true" />
I see strange behavior that it does not matter what library you mention here game-assets1,game-assets2 or game-assets3 , classes will load even if it’s not in that swf.
For example this is ideal right way, obviously all classes will load:
mc1= Assets.getMovieClip('game-assets1:Class1');
mc2= Assets.getMovieClip('game-assets2:Class2');
mc3= Assets.getMovieClip('game-assets3:Class3');
but classes ( Class1, Class2, Class3 ) will still load fine even if you do:
mc1= Assets.getMovieClip('game-assets1:Class1');
mc2= Assets.getMovieClip('game-assets1:Class2');
mc3= Assets.getMovieClip('game-assets1:Class3');
or
mc1= Assets.getMovieClip('game-assets2:Class1');
mc2= Assets.getMovieClip('game-assets2:Class2');
mc3= Assets.getMovieClip('game-assets2:Class3');
or
mc1= Assets.getMovieClip('game-assets3:Class1');
mc2= Assets.getMovieClip('game-assets3:Class2');
mc3= Assets.getMovieClip('game-assets3:Class3');
Is it normal ?