danielharris
Little Devil

Registered: May 2005
Local time: 12:04 AM
Location: Canada
Posts: 36
|
| Problem: Embedding Fonts in a ListBox Component | Post #1 |
Hi,
I'm having problems embedding and/or displaying a font for a ListBox component in Flash MX (MAC OSX). I imported a font into the library and labeled the symbol "font01" and the identifer as "font01a". "Export for ActionScript" has been checked. I am very fustrated and I would apprechiate any help given.
ActionScript:
globalStyleFormat.embedFonts = true;
globalStyleFormat.textFont = "font01a";
globalStyleFormat.applyChanges();
lbStyle = new FStyleFormat ();
lbStyle.embedFonts = true;
lbStyle.textFont = "font01a";
lbStyle.applyChanges();
lbStyle.textAlign = "left";
lbStyle.textSize = 10;
lbStyle.textLeftMargin = 0;
lbStyle.textColor = 0x4D4D4D;
lbStyle.textSelected = 0x633E01;
lbStyle.selection = 0x000000; //highted or selected song name
lbStyle.embedFonts = false;
lbStyle.background = 0x000000;
lbStyle.scrollTrack = 0x000000;
lbStyle.face = 0x121212; //button bg and scroll handle
lbStyle.shadow = 0x000000;
lbStyle.darkshadow = 0x000000;
lbStyle.highlight = 0x000000;
lbStyle.highlight3D = 0x000000;
lbStyle.arrow = 0x333333;
lbStyle.addListener (songList_lb);
|
Report this post to a moderator | IP: Logged
|