[FMX] font on server and createTextField problem

Is it possible to create textfields dynamically AND use a font from the server? I put the font in another movie and import it in the library from the main movie which are both in the same directory on the webserver.


This is only working when you have a dynamic textfield on the stage. But not when you create the textfield at runtime! like this:

_root.createTextField("txt", 0, 0, 0, 0, 0);
_root.txt.embedFonts = true;
_root.txt.text = "hi, i'm not arial but can be a strange font";
_root.txt.autoSize = "left";
_root.txt.setTextFormat(new TextFormat("myFont", 18));

who knows the solution for this problem in flashMX