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

**URL:** <https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782>\
**Category:** Uncategorized\
**Created:** [August 18, 2003, 3:14pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782 "2003-08-18T15:14:52Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![mediaholic](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@mediaholic](https://forum.kirupa.com/u/mediaholic)\
**Post date:** [August 18, 2003, 3:14pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/1 "2003-08-18T15:14:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 4:11pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/2 "2003-08-18T16:11:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 5:12pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/3 "2003-08-18T17:12:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 5:18pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/4 "2003-08-18T17:18:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 5:33pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/5 "2003-08-18T17:33:15Z")

</div>

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);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 5:38pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/6 "2003-08-18T17:38:17Z")

</div>

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

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

> **[DropCatch.com](https://www.DropCatch.com/domain/actionscript-toolbox.com)**
>
> DropCatch.com helps you secure expiring domain names.

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)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 9:01pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/7 "2003-08-18T21:01:16Z")

</div>

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”;

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 9:36pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/8 "2003-08-18T21:36:07Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 9:45pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/9 "2003-08-18T21:45:07Z")

</div>

🙂  
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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 9:47pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/10 "2003-08-18T21:47:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 9:56pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/11 "2003-08-18T21:56:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 10:10pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/12 "2003-08-18T22:10:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 10:35pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/13 "2003-08-18T22:35:42Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 18, 2003, 11:12pm UTC](https://forum.kirupa.com/t/expert-wonted-export-in-first-frame-by-font-symbol/28782/14 "2003-08-18T23:12:37Z")

</div>

lol, glad you are glad =)
