Ok, so I can get access to the image files embedded in an .hxi by using:
var MyImage = "{EXP::MyExpansionName}MyImageFile.png";
ImagePanel.loadImage(MyImage, "pic");
But I can't seem to find the magic combo to get loadDataFile() working so I can load the AdditionalSourceCode
I've tried:
var currentExpansion = "{EXP::MyExpansionName}";
reg expansionData = currentExpansion.loadDataFile("data.json");
EDIT:
Got it
for (e in expansions)
{
var p = e.loadDataFile("data.json");
Console.print(trace(p));
}