macro public static function embedBytes ():Array<Field> {
var fields = embedData (":file");
#if lime_console
if (false) {
#else
if (fields != null) {
#end
var constructor = macro {
var bytes = haxe.Resource.getBytes (resourceName);
super (bytes.length, bytes.b);
};
var args = [ { name: "length", opt: false, type: macro :Int }, { name: "bytesData", opt: false, type: macro :haxe.io.BytesData } ];
fields.push ({ name: "new", access: [ APublic ], kind: FFun({ args: args, expr: constructor, params: [], ret: null }), pos: Context.currentPos () });
}
return fields;
}
I got to switch to dev version of haxeflixel and update haxe to 3.2 now it compiles to HTML5. Got to change several things because of the breaking changes.
Envoyé depuis mon mobile / Sent from my cellphone.
--
HaxeFlixel Development Community
See our github https://github.com/haxeflixel/ and our documentation http://haxeflixel.com/documentation/
---
You received this message because you are subscribed to a topic in the Google Groups "HaxeFlixel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/haxeflixel/x6tOp6ze2Ec/unsubscribe.
To unsubscribe from this group and all its topics, send an email to haxeflixel+...@googlegroups.com.
Visit this group at https://groups.google.com/group/haxeflixel.
To view this discussion on the web visit https://groups.google.com/d/msgid/haxeflixel/1266328f-fcd8-456e-9e85-8bd47a399804%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.