# \[FMX\] font on server and createTextField problem

**URL:** <https://forum.kirupa.com/t/fmx-font-on-server-and-createtextfield-problem/37227>\
**Category:** flash\
**Created:** [December 7, 2003, 4:32pm UTC](https://forum.kirupa.com/t/fmx-font-on-server-and-createtextfield-problem/37227 "2003-12-07T16:32:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pepweb](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pepweb](https://forum.kirupa.com/u/pepweb)\
**Post date:** [December 7, 2003, 4:32pm UTC](https://forum.kirupa.com/t/fmx-font-on-server-and-createtextfield-problem/37227/1 "2003-12-07T16:32:52Z")

</div>

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.

[http://www.macromedia.com/support/flash/ts/documents/sharedfonts.htm](http://www.macromedia.com/support/flash/ts/documents/sharedfonts.htm)

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

```auto

_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
