Expert wonted! "export in first frame" by font symbol

is it possible to prevent the exporting of embeded-font symbols
in first frame?

on my embeded-font symbols “export for as” is turned on
and even if “export in first frame” is turned off my font symbol
loads before firs frame.

does anybody know any workaround?

GOIN’ CRASY WITH THIS

If it is a font imported directly into the library, I am not sure there is a workaround for this.

Things load in Frame 2 when exported for actionscript because it is important that they be fully loaded before they are used. With movie clip symbols and things like that you can prevent this by adding all the symbols that are set to export for actionscript on the stage on a frame right after your preloader and starting your movie on the frame after that. This will allow you to be able to uncheck the export to first frame option because your preloader will load these clips right away.

With a font imported directly to the library though, you can’t drag it onto the stage… so my only suggestion (which I am not sure will even work) is to follow the same method as previously stated but use a dynamic textbox with the font and choose to embed the font outline for all characters for that textbox. This should embed the font into your movie as well so you won’t need to import it into the library.

tnx for that,

yeah i m familiar with all that, but i have to create tf’s dynamicly
and set textformat as well, doing the way u suggest i would be forced to create all my tf’s by authoring time but that is not an option in this project.

the thing which is impossible is that this is very basic issue and im looking whole day for solution, and sounds that nobody knows the answer.

ggrrrrrrrr

i thing im just starting to hate this mm

Well not exactly… when you embed the font via a dynamic textbox on the stage, the font get’s embedded into the movie, so all the other textboxes you tell to embed the font outline use the font that was embedded with the first textbox.

So… although I have never tried, in theory it should work if you manually create a textbox off the stage (so it isn’t visible of course) with a few characters in it and embed the font outline on it and have that preload before all other content. Then the font should be embedded in the movie and be able to be used by the dynamically created textboxes.

but in need the linkage id.
how else should i saythis

my_fmt=new TextFormat();
my_fmt.font=“s1”;
my_fmt.color=0xff00ff;
_root.createTextField(“my_txt”,10,100,100,100,100);
_root.my_txt.embedFonts=true;
_root.my_txt.text=“embedme”;
_root.my_txt.setTextFormat(my_fmt);

It would be the name of the font you are using.

Here I found this, it might be of some help to you…

Here is a quote from it…

If you want the text to be displayed in the font you choose regardless of whether it is on the user’s machine, you’ll need to specify font embedding in the textfield object via code:
[AS]createTextField(“tfNewfield2”,2,10,40,150,30);
tfNewfield2.text = “Here’s more text”;
tfNewfield2.embedFonts = true;
fmtEmphasis = new TextFormat();
fmtEmphasis.size = 16;
fmtEmphasis.font = “MyWierdFont”;
tfNewfield2.setTextFormat(fmtEmphasis);[/AS]

and include a dummy textfield offstage which is set to dynamic text, uses the MyWierdFont font, and has font embedding turned on (click the Character button and choose an option)

tnx a lot for u’re pation
but i think u didn’t understud me right

pay attention to this(from ure link)

then right-clicking on the font in the library, choosing Linkage and turning on Export for Actionscript

as soon u say this u dont actualy need this dummy textfield.
(i m not sure that this fellow knows what is he talking)
there is bug in mx and that is: as soon as u say Export for Actionscript u r automaticly saying Export in First frame
even if u DO NOT check it.
and without Export for Actionscript u can’t say someting like this
my_fmt.font=“s1”;//where si is linkage of my font in lib.

all i wont is to prevent “Export in First frame” be turned on but to have the “Export for Actionscript” so i can us the linkage id of the embeded-font like:
my_fmt.font=“s1”;

No, I didn’t understand…

and include a dummy textfield offstage which is set to dynamic text, uses the MyWierdFont font, and has font embedding turned on (click the Character button and choose an option), [size=4]or[/size] include the font in the library. [size=4]The latter is done by[/size] clicking the drop-down box at the upper right of the library panel, choosing New Font, entering the information for the font to be embedded, then right-clicking on the font in the library, choosing Linkage and turning on Export for Actionscript.

That tells you 2 methods of acheiving embedded font, in my last post I only cropped out the method I was talking about.

With fonts direclty imported into the library you cannot remove the export to first frame option, that is why I was trying to help you with the alternate method :slight_smile:

:slight_smile:
this is nice conversation, isn’t it?

but no, it is not true,
there r no two ways, only one
(
at least if u wont to set a font programmaticly like
my_fmt.font=“s1”;
)
this dummy does not do anything
try to use dummy but without saying export for actionscript
noting will happen.

i attached a fla, so u can see what im trying to du

hey it is not that im persisting on my version, i simply cant get it work.
:sigh:
i would be realy happy if u would correct me with some simple working exampel

Yeah, I wanted to test it out, but I currently can’t (don’t have flash at the moment) I saved your file, I will check it out later.

Ok, switched computers and saw your file.

Here were some errors…

  1. You were loading the font in from a seperate .swf. That won’t work because you need to use shared libraries to be able to share objects from one movies library to another.

  2. You used setTextFormat BEFORE you set embedFonts to true. You need to define it after so that the embedded font can inherit the text format.

Ok, so I tested the method of a textbox off the stage and it works perfect. I saw your s1 font was actually Verdana (at least in my library it was) so I embedded Verdana, but if you want, you can give it a try with a weird font that I most likely wouldn’t have installed, then upload it, and post a link so I can check it out on my browser and see if I see the weird font.

of course!!!
IT WORKS IT WORKS IT WORKS IT WORKS IT WORKS IT WORKS

hey, u know what my problem was,
i simply tought all the time that i need the diferent name for the embeded-fonts from the system-fonts(so i thought i need some linkage id).
f.E.
if i wonted to embed verdana i always used _my_verdana
or so,
but there is no need for that, NO F…IN NEED FOR THAT

i can even use system-verdana paralel to embed-verdana
i simply have to left out.//my_txt.embedFonts = true;

realy sily me
[SIZE=4]TNX TNX TNX TNX TNX TNX TNX TNX TNX TNX TNX TNXTNX TNX TNX TNX TNX TNX TNX TNX TNX TNX AND TNX AGAIN MAN [/SIZE]

lol, glad you are glad =)