From the category archives:

Embed

The following example shows how you can apply smoothing to a background image fill on an MX Panel container in Flex 3 by extending the BitmapAsset class, setting the Boolean smoothing property, and setting the backgroundImage and backgroundSize styles.

[click to continue…]

{ 0 comments }

Embedding fonts in Flex 4

by Peter deHaan on October 15, 2008

in Embed, Fonts, beta

The following example shows how you can embed a font in the Flex 4 and use the embedded font with the new Spark RichEditableText class.

Full code after the jump.

[click to continue…]

{ 26 comments }

In a previous example, “Embedding fonts in a Flex application using Embed metadata”, we saw how you could embed fonts using the [Embed] metadata with the source attribute.

The following example shows how you can embed system fonts in a Flex application using the [Embed] metadata with the systemFont attribute.

Full code after the jump.

[click to continue…]

{ 7 comments }

The following example shows how you can set a Flex Button control’s icon style to an asset from a SWF file using MXML or ActionScript.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can use an embedded font with the Flex Panel container so that a Panel container can be rotated or faded without the text “disappearing”. The trick here is to set the panel’s titleStyleName style to a custom style which sets the font family to the embedded font.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can embed a font using ActionScript and the [Embed] metadata.

Full code after the jump.

[click to continue…]

{ 9 comments }

The following examples show how you can embed a font from a Flash SWF into a Flex application using @font-face in a <mx:Style /> block, or using the [Embed] metadata.

[click to continue…]

{ 16 comments }

The following example shows how you can 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.

Full code after the jump.

[click to continue…]

{ 1 comment }

Setting custom status messages in a Flex Panel container

by Peter deHaan August 31, 2007

The following example shows how you can set custom status messages in a Flex Panel container by setting the aptly named status property.
Full code after the jump.

Read the full article →

Styling a Flex Button control using embedded fonts

by Peter deHaan August 28, 2007

The following example shows how you can customize the appearance of a Flex Button control by using an embedded font and removing the Button’s default skin.
Full code after the jump.

Read the full article →

Creating a vertical ButtonBar in Flex

by Peter deHaan August 20, 2007

This is a simpler version of the “Creating a vertical LinkBar in Flex” entry except it uses the Flex ButtonBar control instead of a LinkBar control. Also, instead of embedding the PNG assets in an <mx:Script /> block, I embedded the images inline using @Embed.
Full code after the jump.

Read the full article →

Styling the Flex Alert control

by Peter deHaan August 11, 2007

This is a more complex version of my previous example. This time in addition to making the Alert control’s text non-selectable, we use an embedded font for the Alert title, message, buttons, as well as edit the drop shadow, remove the rounded corners, and remove the button skins.
Full code after the jump.

Read the full article →