Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-10-2006, 06:25 PM   #1
Registered User
Join Date: Feb 2006
Posts: 14
Question embedFonts and textField not working in Firefox?

Hi there,
I have a bit of a dilemma here. I have a movie which dynamically creates textFields (new textField) and sets them to use html and embedFonts. The text is formatted by importing a stylesheet. There are instances of the fonts embedded explicitly in the same .swf in all flavors (plain, bold, italic, bolditalic).
I am populating those generated fields with HTML text.
In IE, everything is showing up just fine.
In Firefox, I'm seeing other explicitly (non-HTML, hand made) text fields with embedded fonts show fine. However, my actionscript generated fields with embedFonts = true are not showing the text at all. I know they are loading the swf because other, non-text elements are generating and showing like they should.
The .swf is loaded in via the ScrollPane component and then populated with actionscript, if that makes a difference.
I have checked the plugin version on Firefox and just downloaded it again to be safe. Both IE and Firefox have the latest plugin.
Any thoughts?
Thanks in advance,
katekate is offline   Reply With Quote
Old 04-10-2006, 06:51 PM   #2
Asleep At The Keyboard
mcmcom's Avatar
Join Date: Jun 2004
Location: Toronto, Canada
Posts: 2,528

how are you embedding the fonts? Are you selecting a subset of characters from the property pane or are you including a static text box off stage with the fonts you need. I suggest you include a static text box that has all the fonts (in italic, bold, normal) that you will need. Put the static box (if possible) off stage at frame 1, to ensure it loads before your dynamic text boxes do. This may help with firefox (did with me once). Sometimes FF doesn't like the "subset of embedded characters" option you can do in Flash Properties panel for the dynamic text boxes, and it sounds like your doing it at runtime (via AS) so it's just good practice to include a static text box with one occurance of every character you will need for the movie (and make sure it loads BEFORE your dynamic text fields)

Adobe Certified Flash 8 Developer
mcmcom is offline   Reply With Quote
Old 04-12-2006, 09:43 PM   #3
Registered User
Join Date: Feb 2006
Posts: 14

Thank you so much!
I checked my embedFonts and actually didn't find anything there - I had never thought of adding static fields, I always keep a set of dynamic fields with embeds of all the font varieties (bold, italic, etc).
As it turns out, this particular case was an ID10T error, as my buddy in QA used to say. I was feeding vital information to the movie via the FlashVars parameter, and somehow forgot to include that info in the embed tag (d'oh!). So I'm sorry I wasted your time, but I think your advice is very helpful in general. So thanks again!
katekate is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
embedFont stops runtime generated input textField working grandy ActionScript 1.0 (and below) 2 02-02-2008 11:11 PM
dynamically font-embedded input textfield problem PsychoSpike ActionScript 2.0 6 03-16-2005 10:29 PM
wordwrap problems in a textfield caused by embedFonts TheLostMarble ActionScript 1.0 (and below) 15 08-16-2004 07:50 AM
masking dynamic textfield when the textfield has a stylesheet theMonitor ActionScript 1.0 (and below) 0 03-08-2004 07:09 AM
masking a textfield created by script, embedFonts Property? miiiriam ActionScript 1.0 (and below) 7 09-17-2003 07:23 PM

All times are GMT. The time now is 01:19 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.