Hello!

You need to import the entire swf file (and not just a specific class) into Haxe (OpenFL) for further processing.

The source code of the swf file is unknown, but as I understood from the off. documentation is not needed.
I need only an example of a working code, since My error is "Null Object Reference" when compiling. Thank you in advance.

Main.hx

 package; import openfl.display.Bitmap; import openfl.display.Sprite; import openfl.Lib; import openfl.Assets; /** * ... * @author Ian Andrushchuk */ class Main extends Sprite { public function new() { super(); Assets.loadLibrary("274", function(_) { var clip = Assets.getMovieClip ("274:"); addChild(clip); clip.x = 0; clip.y = 0; }); } } 

project.xml

 <?xml version="1.0" encoding="utf-8"?> <project> <meta title="Основные элементы электрических схем" package="Основные элементы электрических схем" version="1.0.0" company="Ian Andrushchuk" /> <app main="Main" file="Основные элементы электрических схем" path="bin" /> <window background="#000000" fps="60" /> <window width="800" height="480" unless="mobile" /> <window orientation="landscape" vsync="false" antialiasing="0" if="cpp" /> <source path="src" /> <haxelib name="openfl" /> <haxelib name="actuate" /> <haxelib name="swf" /> <library path="Assets/img/274.swf" /> <icon path="assets/openfl.svg" /> <assets path="assets/img" rename="img" /> </project> 

0