Prefab’s exports do come with a project file.
This PrefabProject.as class is there to show you how it works. Its an example of implementation.
so if you target the PrefabProject class as main class, the export will compile and replicate what you have exported from Prefab.
Your specific class (the class you gave a name yourself) isn’t extending sprite. Its extending ObjectContainer3D, so you cannot compile this class standalone. You need to provide it a scene (again, look at the PrefabProject.as class how it works)
to insert/import the classes into your project its very easy.
in the class where you have your view, say you exported “MyModel.as”
add import myModel;
and when your view is declared and addChilded, simply do:
var myModel:MyModel = new MyModel();
view.scene.addChild( myModel);
that’s it.
now if you want to access materials, meshes, containers, animators
simply loop over the class provided arrays like
myModel.meshes, myModel.containers, myModel.materials etc..
again, look at the provide3d project class, which runs out of the box and show you how to use it into your project or allow you to start from it.
exporting awd is the same, simply use a loader3d. Note that away4.16 has a bug in awd encoding, so either export the awd and modify the compression tag in parser or export with no compression. I have already provided a fix to the parser, search this forum.