Tag Archives: local()

Embedding local system fonts in Flex 4

In a previous example, “Embedding fonts by name instead of location”, we saw how you could embed a font in Flex by specifying the font name instead of a location by using the local() function instead of the src() function when embedding a font.

The following example shows how you can load a system font in Flex 4 by specifying a custom Flex configuration file and specifying a local font path.

Full code after the jump.

Continue reading Embedding local system fonts in Flex 4

Creating a custom creation complete effect on a Flex Alert control

The following example shows how to specify an effect which gets played when an Alert control is displayed by setting the Alert control’s creationCompleteEffect style. You can also see how to embed both the normal and bold font using CSS and @font-face.

Full code after the jump.

Continue reading Creating a custom creation complete effect on a Flex Alert control