In my game project previously all HUD elements were in the main FLA file. I'm now moving them to an external SWF file to clean up my project.
However I've hit an issue which I don't quite understand.
As a test case I moved over one HUD element to a new FLA file and compiled that to SWF. I successfully load that using ActionScript 3. Without any further code changes the HUD element shows up where it did before, but all dynamic text fields either: a) don't show text b) show text in a wrong position in the textfield (cut off where it exceeds the fields' boundaries) Static text shows fine. I'm guessing hit has to do something with font embedding.
I'm using a single font, which I embedded in my main FLA. For my HUD FLAI tried three things, but all had the exact same result: 1) not embedding the font 2) making sure the embed settings were identical to that of the main FLA 3) making sure the name of the embed settings was different from the main FLA
I'm using classic text.
The following link to an image illustrates what goes wrong. Left loads the SWF with the HUD element, right had the HUD element in the main SWF. As you can see some text is shifted other is completely absent.
difference (unfortunately I'm not allowed to posts images...)
Any help would be greatly appreciated!