AS3 Embedded font in linked SWC / source records when setting up a dynamic text field

It’s good that the name is rather complicated, so I’ll explain how to configure this reason first.

I have a number of related projects created in Flash Builder. Each project gets its graphic assets from the exported SWC file (or several SWC files). This works fine, but I wanted to create a general project containing the materials used in all projects. The first element has a screen with several clips containing dynamic text fields. This screen (and its associated assets) is exported to SWC, and then I wrote code in a common project to add functionality to the screen and buttons. I use 2 fonts, both embedded.

Both display very well in my test harness, but when I link the shared folder SWC and src (which is required to use this code / assets in other projects), the text fields are filled in if I try to set their text properties. If I leave the default text (set in FLA), it will appear, and also static text fields in the FLA will appear only when I set the text property.

I tried several combinations, including removing attachments, exporting to ActionScript, setting all the text fields in the general project to dynamic, with no luck. The main project has the same built-in font, and I checked that the same glyphs are selected both in the main and in the joint project.

I understand that this is a rather complicated setup, but I still have to find a workflow to allow the designer and developer to work better on large projects (but I would like to hear it!)

+3
source share
3 answers

There was the same problem last night. Resolved this morning.

  • The new Flash CS5 font embedding interface will be highlighted, but you must also make sure the checkbox is also selected.
  • Flash Builder 4, (and Flex), files must be updated manually after updating your SWC file, because the system is behind for some reason.

These two things together can lead to some unnecessary back and forth.

+1
source

TextField. .

0

, , :

  • Flash , ActionScript. SWC IDE, .
  • . Flash _sans. SWC IDE, , , , .
  • SECOND KEY POINT. Flash , , , 1 . , .
  • Publish the SWC again and rebuild the IDE from your environment, and you should find everything that works as expected.

Forcing rebuilding with the system font in step 2, it seems that something is hiding and everything works fine, but it is also important to choose the built-in version of the font in step 3, and not just the regular version.

0
source

Source: https://habr.com/ru/post/1754877/


All Articles