# Embed Font for CS3 ComboBox Component

**URL:** https://forum.kirupa.com/t/embed-font-for-cs3-combobox-component/237463
**Category:** flash
**Created:** [August 30, 2007, 3:58pm UTC](https://forum.kirupa.com/t/embed-font-for-cs3-combobox-component/237463 "2007-08-30T15:58:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![amatter](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@amatter](https://forum.kirupa.com/u/amatter)
#### Post date: [August 30, 2007, 3:58pm UTC](https://forum.kirupa.com/t/embed-font-for-cs3-combobox-component/237463/1 "2007-08-30T15:58:45Z")

</div>

Hi all-  
I’m using the Flash CS3 components. In one particular MovieClip, the components are behind a mask. In order for the text to be displayed in the components (or other dynamic TextFields, for that matter) I must set embedFonts to true and make sure the font is available in the SWF’s embedded fonts registry. I’m using the following code:

```auto

inputField.setStyle("textFormat", new TextFormat(inputFieldFont, inputFieldSize));
inputField.setStyle("embedFonts", true);

```

This works on the AS3 Flash CS3 TextInput component, but doesn’t appear to have any effect on the ComboBox component.

Has anyone used these new components with masks or can shed some light? Thanks!
