HEXE prefabs API for Heaps based projects
Download the editor and create your prefab.
Install
haxelib install prefab
Alternatively the dev version of the library can be installed from github:
haxelib git prefab https://github.com/nayata/prefab.git
Include the library in your project's .hxml:
-lib prefab
Use hxe.Lib to load and add a prefab instance to the scene. Note: the prefab name must be without extension.
var object:hxe.Prefab = hxe.Lib.load("myPrefab", s2d);