Using an embedded font with the ComboBox control in Flex

Category: Flex Examples    |    7 views
<?xml version=”1.0″ encoding=”utf-8″?>

<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml”
layout=”vertical”
verticalAlign=”top”
backgroundColor=”white”>

<mx:Style>
@font-face {
src: local(”Base 02″);
fontFamily: EmbeddedBase02;
fontWeight: bold;
}

@font-face {
src: local(”Base 02″);
fontFamily: EmbeddedBase02;
}
</mx:Style>

<mx:Array id=”arr”>
<mx:Object label=”One” />
<mx:Object label=”Two” />
<mx:Object label=”Three” />
<mx:Object label=”Four” />
<mx:Object label=”Five” />
</mx:Array>

<mx:ComboBox id=”comboBox”
dataProvider=”{arr}”
fontFamily=”EmbeddedBase02″ />

</mx:Application>


Share/Save/Bookmark

1 Star2 Stars (+2)

Tags:

0 responses so far!

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word