Hi Glen - thanks for the answer.. Yep - i remember that one - I tried this at first and sadly it did not work...

however to make things stranger - the fonts work in the textfield when i use the keys to select from the drop down (then mouse selection works). But it does not work initially.

hmmm...




On 18 Oct 2008, at 17:38, Glen Pike wrote:

Hi,

Try putting a text field off the stage set and embed your chosen font into it - that used to do the trick with AS2.

  Glen

karim beyrouti wrote:
Hi list  -

I am using the flash CS3 components - and have hit a little snag - when testing in the IDE ( or just running the SWF ) all the fonts show up fine - no problem. However the moment the site goes in the browser - the font does not show up in the ComboBox textField, however they show up no in the dropdown menu. I have embedded the font in my library - and well - i have no clue as to why this is not working in the browser.

this is the code i am using to format the combobox:

<code>
           var tf:TextFormat     = new TextFormat();
               tf.font         = "Gotham Medium";
               tf.size         = 12;
               tf.bold         = false;

           cmb_mc.dropdown.setRendererStyle("embedFonts", true);
           cmb_mc.dropdown.setRendererStyle("textFormat", tf);
                      cmb_mc.textField.setStyle("embedFonts", true);
           cmb_mc.textField.setStyle("textFormat", tf);

</code>


Kind regards



Karim Beyrouti
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--

Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to