@yoplalala: I tried using the two different methods in the post you linked to. Here's what I've come up with:
-
Method 1 (
accepted answer): Stencyl generates the .hxml files on compilation, and apparently doesn't include
-resource links to the files in the extras folder. However, using Settings -> Advanced -> Haxe Flags, the files can be included manually, and retrieving them is just as easy as a single line of code. The problem with this is that the extension user will need to enter each file manually into the Haxe Flags box.
@Master Stencylers: Is there a way to do this automatically?
-
Method 2 (
other answer): I managed to get an XMLHttpRequest working properly, and it doesn't need any customized fine-tuning from the user. The only problem is, this request is asynchronous, meaning that the text is not returned immediately; this in turn means that the text cannot be returned from the function, and has to manually be assigned to a variable. I don't know of any workaround to this, but I'll see what I can find.