Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Embed Fonts For Dynamic Preloader %



You guys are great! I can't resist and ask something else.


It's like this:
I have another website with a nice simple preloader with dynamic percentage but I use some other font rather than the system default one.
Now, if I embed the font, it take like ages (ok, I'm over reacting) to load the font and so, since the site is verry small (my personal site is only 68kb) the objects don't appear until the font is completly loaded. That's around 60% and it sucks!

So, is there a way to get the font to load first before anytinhg else or load independently from the main .swf, so we can actually SEE the preloader bar or the best way is to use a system default font?

I've also tried to embed only the numbers (0 to 9) and the percentage symbol (%) but it also takes to long.



Thanks in advance,
Calenulma



FlashKit > Flash Help > Flash Newbies
Posted on: 04-15-2007, 08:47 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Possible? Embed Fonts Dynamic Xml
Alright, Im trying to embed some font using a dynamic text field. The dynamic of it is text from an xml file.

I tried using the 'character' button and selecting the first four options. I clicked auto fill and when Itest it, I get no text at all.

Any ideas? Is it possible?

Can I Embed Fonts For Dynamic Text?
I noticed my web page looks fine on my computer. I just looked at it on another computer for the first time. Any place that has dynamic text, the other computer substituted some really bad alternatives. How can I get around this?

Dynamic Text Embed Fonts
I can't get dynamic text to work with embedded fonts.
I put a dynamic text field, 'my_txt' on the stage and entered 'Sample Text' into the text field with Arial 12 pt bold.  I then clicked on 'Embed...' and included upper and lower case characters. The text shows up fine when I test movie; however, if I change the text with Actionscript:

my_txt.text = 'New Text';

the text disappears. Even if I reassign 'Sample Text' to the text field:

my_txt.text = 'Sample Text';

it does not display.

What am I doing wrong?

Dynamic Textfield And Embed Fonts
Hi all
I've got a problem with a dynamic textfield wich load a .txt file.
the dynamic textfield is html and is set whith the standard 07-55 font.Not everybody has this font so I include the font in the library and export this one in the first frame by linkage.
after that I tried to load the .txt file in it with some tags in order to add other font face,font size, font color for special parts of the text but only the color and size work, changing the font don't work. If I don't embed the font all work but people who don't have the std 07-55 don't see this one.

Any Ideas,

Thanks in advance...

Dynamic TextField/Embed Fonts With CSS
Hi,

Quick question--

I am creating a textfield via actionscript. This is set to render the text as html, and it inherits its styles from an external css. All of these styles use an atypical font (Frutiger 55 Roman).

On a system with Frutiger installed, the text renders properly. On a system without it, it renders as Times New Roman.

I'm embedding the font and all variations (bold, italics) in other IDE created textfields in the application.

This doesn't seem to help.

When I set the textField to embed fonts, the text disappears. I'm assuming this is because I haven't linked the font from the library. But I'm not assigning a single text format to the the field, and I'm not sure if that even works for a field which renders as html, so I don't think this is the correct route.

So, does anyone have any ideas on how to cleanly embed an atypical font for use in a dynamic text field whose contents are read in externally, and defined by an external css?

Any help is greatly appreciated--

Embed Fonts Dynamic TextFields ?
Embed fonts Dynamic TextFields ?

Hi all,

I'm attaching a movie from the library in which I'm creating a text field, the text field is then filled with text from an xml file.

I need to change the font used from the default sans so I'm trying to use the embed font = true with a Textformat object. I've created a font symbol in the library for the font I want to use and created linkage to Export for Actionscript. The font is called Font 1 in the linkage

With embedFonts = true; no text is shown, but if comment it out the text is there but in the default font.



ActionScript Code:
stop();
//
//
var holder = news_mc.holder_mc;
var mask = news_mc.mask_mc;
//
//
var gutter = 8;
var newsBlock = 50;
var news_xml:XML = new XML();
news_xml.ignoreWhite = true;
news_xml.onLoad = function(success) {
    if (success) {
        DisplayNews();
    } else {
        trace("Error XML not loaded");
    }
};
//
//
news_xml.load("xml/news.xml");
function DisplayNews() {
    var news:Array = news_xml.firstChild.childNodes;
    for (var i = 0; i<news.length; i++) {
        displayNews = news_mc.holder_mc.attachMovie("news_mc", "news_mc"+i, i+1);
        displayNews.news = news[i].firstChild.firstChild.nodeValue;
        //
        displayNews.createTextField("newstxt_txt", this.getNextHighestDepth(), 0, 0, 155, 20);
        newsTxt = displayNews.newstxt_txt;
        newsTxt.html = true;
        newsTxt.wordWrap = true;
        newsTxt.autoSize = true;
        newsTxt.htmlText = displayNews.news;
        newsTxt.styleSheet = cssStyles;
        //
        newsTxt.embedFonts = true;
        var test:TextFormat = new TextFormat();
        test.font = "Font 1";
        newsTxt.setTextFormat(test);
        //
        newsHeight = displayNews.news_txt._height;
        baseHeight = Math.round(dateHeight+newsHeight+gutter);
        displayNews.base_mc._height = baseHeight;
        if (i != 0) {
            prevClip = news_mc.holder_mc["news_mc"+(i-1)];
            displayNews._y = Math.round((prevClip._y+prevClip._height+gutter));
        }
    }
    holder.setMask(mask);
}
var cssStyles = new TextField.StyleSheet();
cssStyles.load("xml/example.css");
cssStyles.onLoad = function(success) {
    if (success) {
    } else {
        trace("not working");
    }
};

Embed Fonts For Dynamic Textfield...
who ever made all this stuff about text in flash is real crazy...

now i cant get my dynamic textfields to show embedded fonts

any tips?

Embed Fonts In Dynamic Text Box - Code?
I am a complete action script novice and need to embed a font into a dynamic text field. The field is populated by text already and has a scroll bar component dragged onto the box. I have imported the font to the library and followed the 'linkage' instructions but what code do I put on the frame/movie action to make it pick up the font when the swf movie plays? Help - I have a deadline by the end of today for this!
ps I know some of the script is "embed font=True" but what is the exact scripting.?

Dynamic Text With Embed Fonts Problem
I posted here my problem.

Can anybody help with this?

I dont know how to solve it.



http://www.flashkit.com/board/showth...hreadid=513450

Thanks Jan

Dynamic Load Fonts - Embed Font Problem
I my BASE.SWF movie I want to dynamicly create embed text fields with. I create coule of font movies files (e.g. ARIA.SWF where is Arial font (I use export for Action Script))

In BASE.SWF I load that movies (using load movie) and then creating text field. Did not work.

! In BASE.SWF I cannot add that fonts or font Symbols with import for runtime sharing oprion, because the list of fonts to load will be dynamicly generated from php/mysql.

Please help me to solve this problem

Dynamic Text Masking : How To Embed Fonts Once For All Swfs ?
I have a main movie calling multiple swf all of them with dynamic text and masks.
I read somewhere i had to embed the font to be able to see the text, which works fine, but adds 30k to every single one of my swfs.
Some are pretty small and really don't want a preload scene, so i was wondering if it was possible to embed a font once in the main movie and not have to do it for every single other swf file loaded from this movie.

Or maybe there is other solutions ?
Read that dynamic masks didn't have the problem in mx, true ?
Read that system fonts didn't need to be embedded, but errr, what are system fonts ?
i tried _sans and _serif and still had the mask problem.

Thanks
K.

Really: Dynamic Text With Embed Fonts OUTLINES Problem
I need really help or advice
Plz see attached file, u will understand ot thsi thread

http://www.flashkit.com/board/showth...hreadid=545757


File:

http://www.flashmedia.cz/flashkit/ex...s_outlines.zip

Jan

Flash Projector - Dynamic Text - Embed Fonts?
just wondering if you have to embed a font, when you are exporting the file as a projector?

Flash Projector - Dynamic Text - Embed Fonts?
just wondering if you have to embed a font, when you are exporting the file as a projector?

Problem In Embed Fonts Outline For Dynamic Field
Hi all,
I've got a main SWF will be launched by IE...
In case, I've an empty MovieClip under a MASK inside this SWF.
And, I'll load different SWF into that empty MovieClip with dynamic font.

The question is, can I online embed the font in one of the dynamic text fields in the MAIN SWF only can let other child SWF use the font!?

The main purpose is, I've many dynamic fields and can I only embed once and all the fields can use the font outline!?

Thanks!

Embed Fonts When Fonts Are Called In XML
Does anyone know how to embed a font in AS3 when there is no dynamic textField in the actionscript because the font is called from an xml file? It's part of a menu. I embedded the font in the component as well as added it to my library and exported it for actionscript. I think it's all good there.

The xml file uses:

<textFormat>
<font>Univers Condensed</font>
<size>15</size>
<bold>true</bold>
<color>0xFFFFFF</color>
<align>right</align>
<leading>0</leading>
<rightMargin>20</rightMargin>
</textFormat>

The Univers Condensed font isn't showing on the menu on a computer that doesn't have Univers installed. The menu component I'm using is Jumpeye's accordion tree menu. I was able to do it on the AS2 version, but not the AS3 version. Any tutorial I can find for embedding fonts in AS3 says to use the dynamic textFiled in the actionscript, but in this case I don't have that. Any thoughts would be appreciated!

Embed Fonts?
how do you embed fonts for dynamic text boxes? it works for static text but not dynamic.

thanks

How Do I Embed Fonts?
Hi there,

I'm wondering how to embed a font on Flash MX on the PC. I'm using one of Minimls fonts and need to embed it so as I can use it with dynamic text.

Can anyone help?

Thanks
Graeme

Embed Fonts
Can someone please remind me on how to embed fonts. I have some dynamic text fields that are under a mask and they don't show up unless the fonts are embeded, or at least I think so. Thanks.

How Do I Un-embed Fonts?
At one point in my file I embedded the fonts. Things have changed and I no longer need to do so. I removed the font files from the library, but when I generate the size report, it appears that font embed information is still being included and is adding significant file size. Any ideas if how to clear this out?

Thanks

Embed Fonts
Hi guys,

Ive just looked at my new site for the first time on another computer <<OH DEAR>>

The font I have used for some sections has been replaced by times new roman ERRRRRRRR!

How do I embed the font I want in my Flash movie??, the help isnt really very clear.

Muchos Thankos

jasinio

Do Fonts Embed Themselves?
Do fonts embed themselves into the exported swf so that all viewers see the intended font, or does their system substitute the font for the closest match if they don't have the font on their system?

How To Embed Fonts?
My fonts aren't coming out properly in published files.


How do I know which font to use?

How do I embed fonts?

thanks

Do I Have To Embed Fonts? Im Not Sure?
If so, how do I do that? THANKS!!!!!!!!

Embed Fonts
how do i embed fonts to be used in a specific textfield?

thanks!

Embed Fonts?
how do i embed fonts in flash mx 2004?


thnx
sean

Embed Fonts
I am trying to embed some fonts in my text area component. I use the folowing script:

text_area_02.color = 0x666666;
text_area_02.embedFonts = "FFF Harmony";
text_area_02.fontFamily = "FFF Harmony";
text_area_02.fontSize = 8;
text_area_02.fontStyle = "normal";
text_area_02.textAlign = "right";
text_area_02.depthChild0._alpha = 0;

The fonts are not embeded...you can see at www.krukiel.com and go to an image icon then to info...what gives? Should I just change to ariel?

thanks,

Mark

Embed Fonts
hi, i have downloaded a font and now i want to embed it into my flash file dynamically. How do i go about that?

g

Embed Fonts
Hello! I'm are using a very special font for my flash-movie. How can I make sure that other people can watch it? Where can I say that flash should include the font into the .swf-file?

Please Help Me How Can I Embed Fonts?
Hello,

I selected "New Font" in the Library panel, but when I tested my .swf on another computer, the supposedly embedded font is messed up!

I've spent an hour reading webpages about it, but I still don't get it. All they talk about is Dynamic text fields, but i'm using a Simple text field.



Please help, thankyou!

Using Embed Fonts
i use this text format

Code:
// set TEXT FORMAT
kk_text_fmt = new TextFormat()
kk_text_fmt.font = "Verdana"
kk_text_fmt.size = 10
kk_text_fmt.color = 0xFFFFFF
If i want to use embedFonts method it not works

Code:
createTextField("main_text_txt",1000,205,198,330,150);
main_text_txt.multiline = true;
main_text_txt.wordWrap = true;
main_text_txt.border = true;
main_text_txt.background = false
main_text_txt.text = this.var_main_txt
main_text_txt._visible = 1
main_text_txt.embedFonts =true
main_text_txt.setTextFormat(kk_text_fmt);
Can i use .embedFonts =true in this case?

How Do I Embed Fonts
How can i embed fonts into my library?

Embed Fonts?
Hi ,
quick question regarding how to make sure when i send a movie for display elsewhere (i am building a banner but it looks different on the site thats displaying it) that the text looks as it does on the local machine. do i have to send fonts with tthe movie or caan they be embedded somehow in the swf?


Thanks in advance
ashley

Embed Fonts
hi,

im planning to go through my whole file and embed the fonts in all my dynamic and input text boxes by going through "character" in properties. Is there a quick way i can do it for my whole document rather than every single box - theres probably about a hundred boxes. And how will this affect the size of my swf?

Can't Embed Fonts
Howdy Folks,

This seems wierd to me, I don't know what I'm missing. I've done all sorts of things, but for the life of me can not embed fonts.

I create a dynamic text field, I select embed, I select the characters I want from the list, or I simply type the characters in I want, in this example, a preloader, so I need 123456789%.

I then goto publish, low and behold, the font isn't displayed. I goto don't embed, and it's back. What am I doing wrong here, pleaaaaase help me.

Edit: I've just ascertained that exactly the same action functions no problems using flash player 7

Embed Fonts
Hi,
How do I embed fonts in flash?
I have some text loading into a dynamic text box.
The rest of my text is static.
Can anyone point me in the right direction?
Thanks!

Embed Fonts
Hi,
I am making a site in flash 8. I am using dynamic text and static text.
Do I need to embed both dynamic and static text?

How do I do this???
Thanks so much!

Embed Fonts
New to this feature.

I'm planning on loading and external content.swf into the main.swf. The content.swf has dynamic text fields. Anyway, if I embed fonts on the main.swf are they accessible by the text fields within the content.swf...and do I need to do anything special with the text field?

Any advice and/or links to good resources would be appreciated.

How To Embed Fonts?
hi im trying to create a textfield with AS3 with Arial Rounded MT Bold, this is what i have come up with so far but it does not embed the font:


Code:
import flash.text.TextField;
import flash.text.TextFormat;
[Embed(source='assets/ARLRDBD.TTF', fontName="Arial Rounded MT Bold", mimeType="application/x-font-truetype")];

var cr:TextField = new TextField();
cr.text = "a text";
cr.x = 300;
cr.y = 300;
var crf:TextFormat = new TextFormat("Arial Rounded MT Bold", 15);
cr.setTextFormat(crf);
addChild(cr);
any ideas?

Is There Any Other Way To Embed Fonts?
Hi,

I have four dynamic text fields in a screen. Those text fields are feeded with a XML file content.
I have the Embed all activated on the text field properties of all of them. Nevertheless, considering the time that Flash takes to compile the SWF, I think that it is keeping 4 redundant glyph sets.

So, is there any other way to embed fonts instead of the Embed button? I need to embed all sizes, all variations of the font.

Best regards,
Norberto

Embed Fonts & CSS
Hey All

Is it possible to use CSS on an Embedded font? Whenever I try embedding the font and a TexFTield I've been styling with CSS, it doesn't display anything???

Any ideas appreciated!
Matt

Embed Fonts
Is it possible to use fonts from one SWF file to another FLA file Which is not installed in my system.

AS3 Embed Fonts
OK. I see. I'll give that a try. Thanks so much. The little things can make you crazy.

Embed The Fonts
Hi!

How will i do in MX on this mather ?

You may need to embed the fonts in your text field

Thats wath the support ask me to do

Thanks

Embed Fonts
Hi,
How do I embed fonts in flash?
I have some text loading into a dynamic text box.
The rest of my text is static.
Can anyone point me in the right direction?
Thanks!

Embed Fonts
Hello,

I'm trying to assign an embedded font to a programmatically generated TextField. When I enable the embedFonts (i.e. set it to true) the text does not display at all. When I comment out that line of code, the text displays but in system fonts. Any help is greatly appreciated...

Here's My Code:









Attach Code

[Embed(source="C:WindowsFontsfff_estudio_extended.ttf", fontName="fff_estudio_extended", mimeType="application/x-font-truetype" )]
var _arrBtnLbls:Array = new Array;
_arrBtnLbls.push("main");
_arrBtnLbls.push("about us");
_arrBtnLbls.push("web");
_arrBtnLbls.push("print");
_arrBtnLbls.push("contact");

var tfTempTxtField:TextField = new TextField;
var tfX:Number = 0;

for(var i:int = 0; i <= _arrBtnLbls.length - 1; i++){
generateTxtField(_arrBtnLbls[i]);
tfTempTxtField = TextField(getChildByName(_arrBtnLbls[i].replace(" ", "_")));
tfTempTxtField.text = _arrBtnLbls[i];
tfTempTxtField.x = tfX;
trace(tfTempTxtField.width);
trace(tfTempTxtField.length);
tfX += tfTempTxtField.width + 20;
}

function generateTxtField(n:String){
var txtField:TextField = new TextField;
var frmFormatter:TextFormat = new TextFormat();

frmFormatter.font = "fff_estudio_extended";
frmFormatter.color = 0xFFFFFF;
txtField.embedFonts = true;
txtField.setTextFormat(frmFormatter);
txtField.autoSize = TextFieldAutoSize.CENTER;

txtField.name = n.replace(" ", "_");

addChild(txtField);
}

trace("mainBtn.length " + mainBtn.length);
trace("mainBtn.width " + mainBtn.width);

Embed Fonts
Hi, I have a problem with fonts in flash. I'm trying to make a complex app. I want to put all the fonts in a swf, laod that swf and use the fonts with AS3. I want to create textFileds with AS3 and set the fonts. The problems is when I make a shared lib I can not access fonts with AS3. I have put the fonts the my library, I can access them with AS3 but teh problem is when I put my app on a computer with out those fonts, the textFileds don't have the correct fonts. What can I do to fix it? I prefer if possible to have the fonts embed in a speared swf and load them in my main movie, but if this is not possible then just embed them in the main movie.
Thank you for taking a look on this post hope you know a solution.

Embed Fonts
hi

i have again a question about using textfields

if i create a textfield like
createTextField(txtfield...);
and want to render embed fonts i do likt this:
txtfield.embedFonts = true;

BUT
you can i adjust which characters i want to be embed
otherwise the field keeps clear

Is It Possible To Embed Fonts ?
^ in a swf file, or tell the movie to load a specific font at a specific location...


Mmmhhh maybe i should work for Macromedia givin' them ideas ;-) !

Copyright © 2005-08 www.BigResource.com, All rights reserved