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








Help.. Font/textfield Issue


im having a problem with the text areas in my site.
everything is loaded dynamically... and im using pixel fonts... they are set to 4-points, and im able to view them correctly.. but others can not. the site is designed for 1024x768 and we are using the same res.. what could the problem be?


any ideas... would be greatly appreciated...

thank you.




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 03-08-2005, 12:48 AM


View Complete Forum Thread with Replies

Sponsored Links:

Help.. Font/textfield Issue
im having a problem with the text areas in my site.
everything is loaded dynamically... and im using pixel fonts... they are set to 4-points, and im able to view them correctly.. but others can not. the site is designed for 1024x768 and we are using the same res.. what could the problem be?


any ideas... would be greatly appreciated...

thank you.

View Replies !    View Related
Anyone Know Flash CS3 Embed Font's Glyphs Range With Font Class(no TextField )
I have add some font by Font class in the library
(TextFeild.embedFonts=true)

but the font's glyphs looks not enough.

when i use text String " ü ä ö ß π à â ç è é ê ë î ï ô ù û œ "
only the "Ï€" and "Å“" is can be visible.
Font.hasGlyphs also return false;

if i only create a TextField, and Click the Embed button selection glyphs range.
the text will be fine.

but i won't use TextField by drag to the stage

i heard in flex:
@font-face {
src:local("Arial");
fontFamily: myFont;
flashType: true;
unicodeRange:
U+0041-U+005A, /* [A..Z] */
U+0061-U+007A, /* a-z */
U+0030-U+0039, /* [0..9] */
U+002E-U+002E; /* [.] */
}
so what can i do in Flash CS 3?

thanks a lot
i really tried working on this.maybe i just need go back use the .....TextField.

View Replies !    View Related
[MX Pro] TextField Font
Hi Buddies,

I have a dynamic textfield created on run time and it is enabled for HTML text. The text value for the above textfield will have html font tags with attributes fonct face ans size. For examble :

<font face = 'arial' size ='12'>Follow the directions given below to answer the questions that follow.<br><br>Your answer for each question below would be:<br><br>A, if ALL THREE items given in the question are exactly ALIKE.<br>B, if only the FIRST and SECOND items are exactly ALIKE.<br>C, if only the FIRST and THIRD items are exactly ALIKE.<br>D, if None of the above.<br></font>

All is working fine. But if the face value of the font tag left as blank like <font face='' size=''> flash displays the texts in TimesNew Roman font. But it needs to be displayed in some other fonts. Is there any other way to over ride it.

Please reply me... Its something urgent. Thanx in advance

View Replies !    View Related
Font From A Textfield?
Just wondering is it possible to apply the font from a textfield that is already on the stage to a dynamically created textfield??

I been trying to find a good way of importing fonts. I programmed my girlfriends site and it stalls in the beginning and I think its the fonts are being loaded.

Any ideas?

website below



website:
www.kmjdesignz.com

View Replies !    View Related
Textfield Font Formatting
I need to change the font in my html enabled dynamic textfield, but can't find how. I've tried this:


Code:
Text = "this is some text <font face="beware"> and this is some more</font>";
but with no success, any suggestions?
Thanks in advance

View Replies !    View Related
Textfield With Shared Font
I'm building a website which first loads a library with a
font. The linkage name of that font is font-HelveticaNeueCondensed.

After that I load another swf in which I create a textfield
with createTextField. How can I asign the shared font to
the textfield? (It must also be embedded.)
This is my code but it doesn't work..


this.createTextField("my_txt", 1, 0, 0, 236, 230);
my_txt.embedFonts = true;
my_txt.text = "blabla";

my_txtFormat= new TextFormat();
my_txtFormat.size = 16;
my_txtFormat.font = "font-HelveticaNeueCondensed*";
my_txt.setTextFormat(my_txtFormat);


thanks

View Replies !    View Related
TextField Font Face ?
code: this.createTextField(“tButtonText”, this.getNextHighestDepth(), 0, 0, 150, 20);

Is it possible to select the Font Face for dynamically created TextField Object?

View Replies !    View Related
Embed Font To TextField
Hay all how can i embad fonts.
but onlt the basic characters, as if you selected the characters from the properties.


ActionScript Code:
name_txt = new TextField();
name_txt.width = 150;
name_txt.x = -75;
name_txt.y = -30;
name_txt.antiAliasType = AntiAliasType.ADVANCED;
myFormat = new TextFormat();
myFormat.font = "Tahoma";
myFormat.color = 0xFFFFFF;
myFormat.size = NodeDiameter/6;
myFormat.bold = true;
name_txt.text = josnInfo.label;
name_txt.autoSize = TextFieldAutoSize.CENTER;
name_txt.setTextFormat(myFormat);
txtArray.push(name_txt);
addChild(name_txt);

View Replies !    View Related
TextField TextSize And Font
Hi,

I am trying to set the font and textSize of text being loaded into a textField. I have attached my code below. I can't see where I am going wrong and it doesnt work. Can anyone tell me how to set the font and size of the text.

thanks

Barry.







Attach Code

import flash.text.TextField;

var textBox:TextField = new TextField();

// createTextArea()
function createTextBox():void
{
textBox.x = 680;

textBox.y = 550;

textBox.textColor = 0xFF0000;

textBox.width = 300;

textBox.height = 170;

textBox.wordWrap = true;

textBox.background = true;

textBox.alpha = 0;

addChild(textBox);
}


// fillTextArea()
function fillTextBox(caption):void
{
textBox.text = caption;
}

























Edited: 06/16/2008 at 03:44:53 AM by ++ Barry ++

View Replies !    View Related
Textfield With Shared Font
I'm building a website which first loads a library with a
font. The linkage name of that font is font-HelveticaNeueCondensed.

After that I load another swf in which I create a textfield
with createTextField. How can I asign the shared font to
the textfield? (It must also be embedded.)
This is my code but it doesn't work..


this.createTextField("my_txt", 1, 0, 0, 236, 230);
my_txt.embedFonts = true;
my_txt.text = "blabla";

my_txtFormat= new TextFormat();
my_txtFormat.size = 16;
my_txtFormat.font = "font-HelveticaNeueCondensed*";
my_txt.setTextFormat(my_txtFormat);


thanks

View Replies !    View Related
Textfield With Shared Font
I'm building a website which first loads a library with a
font. The linkage name of that font is font-HelveticaNeueCondensed.

After that I load another swf in which I create a textfield
with createTextField. How can I asign the shared font to
the textfield? (It must also be embedded.)
This is my code but it doesn't work..


this.createTextField("my_txt", 1, 0, 0, 236, 230);
my_txt.embedFonts = true;
my_txt.text = "blabla";

my_txtFormat= new TextFormat();
my_txtFormat.size = 16;
my_txtFormat.font = "font-HelveticaNeueCondensed*";
my_txt.setTextFormat(my_txtFormat);


thanks

View Replies !    View Related
Textfield - Font Problem. Advanced.
Hello!

I have a major problem with a textfield in FlashMX.

I have a textfield. In this textfield I use the "Futura Book" font. The font works in every other program. Only one charakter makes problems in Flash. When I write an "ß" (a german charakter) it is displayed correctly. But when I click outside the activated textfield to unselect it, the "ß"-charakter turns into a "§"-charakter. When I doubleclick in the textfield again, the "§" turns into a "ß" back again. The SWF-file also displays the wrong "§"-charakter.

I already tried to use dynamic or input text, I reinstalled the font, tried that on other computers. Its always the same. The weird thing is that the font is ok at other programs.

I have a G4-500 dual (I tried that at MacOS9.2 and OSX10.2.3)

Can you help me?!
I will appreciate every tipp or hint! Thank you!

Raphael Wichmann

View Replies !    View Related
Setting The Font Of A Dynamic TextField With As
Hello, Is it possible to Set the font of a Dynamic TextField with actionScript

I can only use it on a textField created using 'createTextField' and I don't want to do that

thanks

View Replies !    View Related
Embedfonts - Embedding More Than One Font (2) On 1 Textfield
Hi guys

This has been discussed at length... I can easily embed ONE font in ONE textfield using a library font and TextFormat.

However, I need to use Myriad Pro and Arial in one single HTML textfield. I need the heading to be in Myriad and the rest of the text to be in Arial.

Even if I can only embed the Myriad, that would be great! I don't mind the Arial stuff being unembedded...

I am using an external CSS. It works beautifully until I start to try and embed stuff... then nothing appears. My textfield is located INSIDE a movieclip. If I do a test with a textfield on the stage, it works everytime, no sweat..

Is there any way of achieving this? Any help/guidance would be appreciated.

View Replies !    View Related
Font Highlight In TextField (ActionScript 3 )
can any one tell me how i can highlight a text in TextField.

for example i can do following thing easily but if i want to highlight "text", thats not possible ?

Code:
some text here.
I want to give yellow background color to text.

There are few ways like, i make 2 TextField objects and then set background of one field. But i dont know how to concat 2 textfield!!!


HTML Code:
Donec pretium iaculis sem. <marked>Quisque</marked> aliquam. Ut ligula orci, luctus vel,
in that case i want to change the background Color of "Quisque" to Yellow.

Any Idea?

View Replies !    View Related
Any Way To Retrieve Font Symbol Name From TextField?
I love asking hard questions! Suppose I've created a Font symbol in the library to embed the Calibri font and give it the name "H1Font". I won't bother setting the linkage because I'm only going to create textfields manually.

Now I use the Text Tool to manually place a dynamic textfield on the stage and give it the instance name t1. I look through the font list and set "H1Font*" as the font for this textfield.

I can use scripting on the first frame to set the text of this field:

ActionScript Code:
t1.text = "whatever";

But if I try to retrieve the font for this textfield, I get

ActionScript Code:
trace(t1.getTextFormat().font); // traces "Calibri"

It seems that "H1Font*" only acts as an alias or pointer for the font that I'm embedding. Is there any way from me to query my textfield and retrieve "H1Font"?

View Replies !    View Related
Dynamic Textfield + Library Font
Hi guys,

Is it possible to use createTextfield and set a font that is embedded (and shared) in the library?

I've tried a few things - including textFormat(), but I've had no luck at all.

Any suggestions?

Cheers,
Ben

View Replies !    View Related
[Q] How To Find The TextField Which Uses Specific Font?
Howdy...

Quick question...

Let's just say that I have a movie that has several hundred movieClips in the library...
Some are attached on the stage manually and some are attached via attachMovie() function during the runtime...

Okay... I get to see the size report when I publish the movie and I find that I am using 'Arial Bold' font and '_sans' font... I do not recall using those fonts because I get to get the graphical symbols from the other person, for example... So, I do need to find where he used those fonts... I manually open up all the movieClips and see if I can find them or not... Sometimes I can find them, but not all the time... and it's really impossible to find them if the project happen to be a year old or whatever...

So... I am just wondering if any of you know if there is a way to find the textField that uses specific font???

Thanks...

*

View Replies !    View Related
Setting Font For Created Textfield
[as]_root.sidearea.removeMovieClip();
_root.createEmptyMovieClip("sidearea", 3);
_root.sidearea.createTextField("scriptinput", 2, 0, 0, 600, 600);
mt = new TextFormat();
mt.font = "Lucida Console";
_root.sidearea.scriptinput.setTextFormat(mt);
_root.sidearea.scriptinput.type = "INPUT";
_root.sidearea.scriptinput.border = true;
_root.sidearea.scriptinput.multiline = true;[as]

just copy it into the first frame and fix it and copy it back i know its something really simple but for the life of me i cannot figure it out.

thanks.

View Replies !    View Related
Textfield Max Font Size - Please Help Me B4 I Lose It
Hi there..

trying to build a Textfield dynamically in AS2/F8. I can't seem to get the text size to be larger than 127, and I am wondering if there is an upper limit when building them in AS.

I have a class that has the following static method, which works well (for any size less than 127 apparently) If I pass in 200 as my nSize arg, when I trace(t.getTextFormat(0,1).size) i get 127 every time.





Code:
public static function makeTextbox(target, clipName, depth, w,h,fontSymbol, nColor,nSize,txValue){
var t = target.createTextField(clipName+"-tx",depth,0,0,w,h);
t.type="dynamic";
t.embedFonts=true;
var fmt:TextFormat = new TextFormat();
with (fmt) {
font=fontSymbol;
color=nColor;
size=nSize;
}

t.setNewTextFormat(fmt);
t.text=txValue;
return(t);
}
Any thoughts or is there a hidden rule I don't know about here?

View Replies !    View Related
Setting And Embedding A Font To A TextField
Hi,
I want to create a text field and write in it using a certain font from my font library.
This is the code I use to create the textField:

PHP Code:



import flash.display.*;import flash.text.TextField;    var myText1:TextField = new TextField();    myText1.text = "something";    this.addChild(myText1);    myText1.x = 110;    myText1.y = 40; 




I embedded the font in the library and gave it the linkage name: "font"

What code to I need to add in order to write this in this certain font?

Thanks

View Replies !    View Related
Different Font Size In A Dynamic TextField
If I want to display something like this: ABCD.

How to do it in actionScript? using htmlText?

View Replies !    View Related
TextField/TexFormat Font Not Embedding
for some reason i cannot embed a font in the textfield and textformat objects

the TextFormat.getFontList displays the font.., it embeded or available... but when using the font in TextFormat , if i set embedfont in the TextField instance to true i do not see any text, if i do not embed i see text with the system font.

heres my code.. am i missing something?

// A contains the font i try to use
A = TextField.getFontList();
myText = new TextFormat();
myText.color = 0x280000;
myText.font = "Verdana";
myText.size = 9;
//
this.createTextField( "loginField", 1000, 248.0, 101.0, 115, 16.0);
loginField.setTextFormat(myText);
loginField.background = true;
loginField.backgroundColor = 0xCAD4C7;
loginField.border = true;
loginField.borderColor = 0xACB4A9;

// make this false and i see the system font, when true i cannot write
// any text to the text field, not does anything
// get written to the associated variable
loginField.embedFonts = true;
loginField.type = "input";
loginField.selectable = true;
loginField.variable = login;

any help would be appreciated... is this a bug or am i wrong somewhere?

thanks
nik

View Replies !    View Related
Pixel Font Cut Off Top In Dynamic Textfield
this is a little hard to describe, but I'll try my best to get myself clear.

ok, to use pixel font for dynamic textfield the normal way, it works all fine.

but the other day I saw a pretty neat text typing class on Lee's gotoandlearn forum. I downloaded that and use on my menu button dynamic text (using pixel font). the effect is working fine, but just some top part of the pixel font got cut off.

like this:



I think i've already done everything i could to sort this out, I embed all the character I need, even create font in library... This is kind of drive me crazy, i've searched all over the forum for an answer. anyone?

- mark

View Replies !    View Related
Stuck On Dyn. Textfield - Font Size On MAC / PC?
I am using dynamic textboxes (html) without including font outlines - font used is _sans which should lead to Arial on Windows and Helvetica on Mac. The text-size on mac is approx. 1px smaller than on my pc.

Now i am looking for the cause for this behavior - i need both mac and pc to have exactly the same size. I thought about increasing the "leading" parameter but that does not work because the needed value is somewhere between 1 and 2

Does anybody know any solution for this problem without (!) embedding the font? Does increasing the font size by 1 for mac only solve the problem - remember: i need exactly the same font size

I am a little helpless at the moment - no mac in range to test things myself...

View Replies !    View Related
Embed Font Outline In Dynamic Textfield
Hi folks,
I have a problem with my flash movie. I have a dynamic textfield in my scene that displays a text for each button in the navigation bar, and I have choosen the button "Embed font outlines" in my textfield options, but it isn´t working. It should display a font called "Christina Bold - size 13", but it just shows a device serif font.

Can anyone help me urgently what I have done wrong and how I´, going to embed a goodlooking font with my movie, without it ends up with showing a device font on a PC.

Hope you can help me :-)

Best regards
Thomas

View Replies !    View Related
Change Font Of A Text Of A Textfield... By Actionscript
Hi,

Could you please tell me are there any ways to change font of a text in flash movie (e.g. Text field) by ActionScript? I mean changing font on run-time? Does flash program have a font object? ( I saw string object, math object, color object... but I can not find a font object)

Thanks in advance,

View Replies !    View Related
Changing Font Color Dynamic Textfield
Hi there, what I want to do is changing the font color of a dynamic textfield when a user pressed a button. The blacktext has to become red and stay red untill the user clicks another dynamic textfield (menu option). The thing is I use duplicate movieclip and I'm stuck like h*ll. Now I use a button which changes color at a really simple way, but because the font has to stay red when clicked > I have to do it by actionscript, but how???

This is what I got for now:
Example .swf

Download fla:
Example .fla*
Example .txt*
(*both needed to run the menu)

Thanx for helping me out

View Replies !    View Related
Dynamic Textfield Font Scaling Problem
Hey everyone,

I'm having the following problem in Flash 5:

I have a dynamic text field set to a font called "MetaBook-Roman". The text field(titled captext) is contained in a movie clip. I assign a string to this text field using a button that attaches the movie clip to the root.

The problem is, for some reason, even though i don't scale the container clip or the text field(set to font size=10), it looks like the text is getting scaled in height. I compared it to static text, and the font is fine when the .swf file is generated...this only happens when the text is dynamically assigned and displayed. I embedded the font as well as a precaution, but it doesn't make
a difference.

thanks for the help in advance
Adil.

View Replies !    View Related
Different Font Styles And Colors In Dynamic Textfield
Hi

I just put some text in a dynamic textfield. As I publish the movie I noticed that I can't use diferent styles (regular/bold) and different colors in the same dynamic textfield. What do I have to do to make this work..


Tom

View Replies !    View Related
Embed Font + Dynamic HTML Textfield
Hi my problem is I have a flash file which reads in an XML file (unicode encoded) and creates a dynamic HTML textbox and puts the text from the XML file in it.


Code:
_level0.content.createTextField("text_box", 2, 50, 20.6, 700, 395.4);
_level0.content.text_box.embedFonts = false;
_level0.content.text_box.html = true;
_level0.content.text_box.wordWrap = true;
_level0.content.text_box.selectable = false;
_level0.content.text_box.multiline = true;
_level0.content.text_box.autoSize = true;
// when embedfonts == true bullet point doesnt work
_level0.content.text_box.embedFonts = true;
_level0.content.text_box.htmlText = the_text_read_in_from_file
N.B/ before the variable the_text_read_in_from_file I append "FONT FACE="Verdana cum Macron"> and </FONT> at end
Which works fine however when there is a <li> tag which should display a bullet point it doesnt.

However noticed if I comment embedFonts=true the bullet appears - but then obviously the text is not the correct antialiased font.

I have html textboxes positioned of screen and in the included characters have pasted bullet point in the include these characters boxes and even put the font in the library.


Any suggestions welcomed! ( by the way the embedfonts false and then true was to get rid of a word wrapping bug).

View Replies !    View Related
Input Textfield & Embed Font-- Toubles
Hi,

I am trying to dynamically create an input textfield. This is pretty easy, but my problems start when I try and embed fonts, it appears to stop working, as soon as I comment out the line it is fine again, peculiar.

my code:

Code:

// my formatting codes
// =============================================
// text Format
// =============================================
_global.fontName = "Avenir 65 Medium";
_global.avenirFormat = new TextFormat();
avenirFormat.font = fontName;
//avenirFormat.bold = true
avenirFormat.leading = 0;
//
// =============================================
// =============================================
// Create the input text field
// =============================================
this.createTextField("yName_txt", 10, -77, 34, 162, 17);
yName_txt.type = "input";
yName_txt.embedFonts = true;
yName_txt.border = true;
yName_txt.setTextFormat(avenirFormat);
//
//
//
//
stop();
The way I embed fonts to the SWF is like this:
• draw a dynamic textfield under the stage
• select Character & ensure Embed Font Outlines For: All Characters is checked
• if you like you can duplicate this for each of the font Styles you wish to export, i.e. Redular, Bold, Italic, Bold Italic, etc.


The font I am using is Avenir 65 Medium in a Bolded Style, the regular is too light, so where I have been using it with regular Dynamically created text fields I have to use the Html bold Tags "<B>"and "</B>"


Any one have any suggestions?


Thanks.

D.

View Replies !    View Related
Setting Dynamic TextField Font With Actionscript?
Is this even possible? I've tried all the Adobe documents I could find, and none of them work...BLAH!

View Replies !    View Related
Shared Font In Dynamically Created TextField
Hi,

I have a swf using a shared font. It works fine in static and dynamic textfields placed on the stage at author time, but I can't get it to work on a dynamically created textfield.

Has anyone else had this problem? Could it be the font?

View Replies !    View Related
HTML Formatting In Textfield With Custom Font
Hello,

I am trying to get the following HTML formatted text to display properly in a dynamic text field with HTML enabled.

test = "<B>This is bold,</B> and this is not.";

In order to have the text anti-aliased, I embed the fonts. But by doing so all of a sudden all text within the <B></B> tag is gone. If I do not embed any fonts, it will display all text, but nothing will be anti-aliased and basically look like crap.

All I want is to have both bold and regular text within the same textfield, using a non-system or non-standard font.

In flash 6 this works by just embedding the fonts and ticking the Bold B. But in 2004 it doesn't. It seems as if it will only embed the regular OR the bold, but not both.

Thanks beforehand boys n girls

View Replies !    View Related
Half Font Sizes In Dynamic TextField - No Possible?
this does not seem to work when styles text in a dynamic text field:


Code:
myStyle = new TextFormat();
myStyle.size = 14.5;
it seems to round it down to 14. Very restricting! Anyone know differently or know a work around...maybe using em?

View Replies !    View Related
Problems With A Font Symbol And A Dynamic Textfield
Hi everybody,

I am trying to use a font symbol from an external shared library.

When I place the script below in my frame, trying to format a textfield on the stage, the textfield dissapears. Only when I place another element (from the same shared library) in the stage, the textfield responds to the script. Although, when I tried to create a static text using the same font symbol, the dynamic textfield dissapeared, while the static text got the font symbol without any trouble.

Could you please give me some hellp with this?

var myFormat = new TextFormat();
myFormat.color - 0x999999;
myFormat.font = "Harmony";//Harmony is the Identifier of the symbol
myFormat.size = 16;
_root.my_txt.embedFonts = true;
_root.my_txt.text = "Some text";
my_txt.setTextFormat(myFormat);

View Replies !    View Related
Problems With A Font Symbol And A Dynamic Textfield
Hi everybody,

I am trying to use a font symbol from an external shared library.

When I place the script below in my frame, trying to format a textfield on the stage, the textfield dissapears. Only when I place another element (from the same shared library) in the stage, the textfield responds to the script. Although, when I tried to create a static text using the same font symbol, the dynamic textfield dissapeared, while the static text got the font symbol without any trouble.

Could you please give me some hellp with this?

var myFormat = new TextFormat();
myFormat.color - 0x999999;
myFormat.font = "Harmony";//Harmony is the Identifier of the symbol
myFormat.size = 16;
_root.my_txt.embedFonts = true;
_root.my_txt.text = "Some text";
my_txt.setTextFormat(myFormat);

View Replies !    View Related
Masking A Dynamic Textfield With A Device Font
Hi everybody,

I want to be sure that I have the right info:

Is there any way to mask a dynamic textfield that uses a device font?

Thanks

View Replies !    View Related
Set TextField For Bitmap/Pixel Embedded Font?
Is it possible to set a TextField using an embedded Pixel font to use the 'Bitmap text (no-anti-alias)" from within AS3?

All that antiAliasType gives me is NORMAL and ADVANCED, and playing with gridFitType isn't working either...

Thanks.

View Replies !    View Related
Maximum Font Size In Dynamic Textfield?
Hi all,

For some reason changing font size with a TextFormat to be applied on a TextField is having no affect past around 100-120 or so? Setting to 300 and so on for instance has no affect?

Is there a way i can get it larger using something else, not a textfield for instance? Really odd problem this, dont see why they'd limit it.

View Replies !    View Related
Problems With A Font Symbol And A Dynamic Textfield
Hi everybody,

I am trying to use a font symbol from an external shared library.

When I place the script below in my frame, trying to format a textfield on the stage, the textfield dissapears. Only when I place another element (from the same shared library) in the stage, the textfield responds to the script. Although, when I tried to create a static text using the same font symbol, the dynamic textfield dissapeared, while the static text got the font symbol without any trouble.

Could you please give me some hellp with this?

var myFormat = new TextFormat();
myFormat.color - 0x999999;
myFormat.font = "Harmony";//Harmony is the Identifier of the symbol
myFormat.size = 16;
_root.my_txt.embedFonts = true;
_root.my_txt.text = "Some text";
my_txt.setTextFormat(myFormat);

View Replies !    View Related
Problems With A Font Symbol And A Dynamic Textfield
Hi everybody,

I am trying to use a font symbol from an external shared library.

When I place the script below in my frame, trying to format a textfield on the stage, the textfield dissapears. Only when I place another element (from the same shared library) in the stage, the textfield responds to the script. Although, when I tried to create a static text using the same font symbol, the dynamic textfield dissapeared, while the static text got the font symbol without any trouble.

Could you please give me some hellp with this?

var myFormat = new TextFormat();
myFormat.color - 0x999999;
myFormat.font = "Harmony";//Harmony is the Identifier of the symbol
myFormat.size = 16;
_root.my_txt.embedFonts = true;
_root.my_txt.text = "Some text";
my_txt.setTextFormat(myFormat);

View Replies !    View Related
Attaching Custom Font To Dynamically Generated Textfield...?
Hi,

I want to create a textfield like this:

_root.createTextField("mytext",1,100,100,300,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = false;

myformat = new TextFormat();
myformat.color = 0xff0000;
myformat.bullet = false;
myformat.underline = true;

mytext.text = "Text bla bla bla";
mytext.setTextFormat(myformat);

Now... How can I use a font which I can embed in my movie and use it in this field... Also with anti-alasing...

Thanks in advance!

View Replies !    View Related
Using Multiple Font Styles In CSS To Format A TextField Using EmbedFonts - Possible?
I want to apply CSS to a dynamic TextField on my stage so that the xml read into it will be formatted according to the multiple FONT styles specified in my .css. I know how to do this. This is simple enough.

I also want to use EMBEDDED FONTS because I cannot assume the fonts in my .css will be installed on the target machine. I know how to do this also, so this too is simple.

The problem I am having is how to get the TextField to display multiple fonts based soely on my .css/.xml declarations.

Any clues??????????????

View Replies !    View Related
Dynamic Textfield Font Problem, Lucida Grande
Hi!

I´m why is it so that some font is displayed differently in a static and dynamic textfield?

I´m using Lucida Grande in dynamic textfield, 10 pt, font embedded of course and alias text,
after publishing it looks different than the same thing in static textfield.
Spaces between letters are all wrong...

check the attached file(if you have lucida grande)

View Replies !    View Related
Dynamic & Static TextField Embedded Font + CSS + HTML, Please Help
Hi Everyone;

ActionScript 3.0 + Flash 9

I'm having trouble with embedded fonts and dynamic textfields when static text is on the stage using the same font.

From the many forums across the net, I've been able to figure out that the problem has something to do with the fact that static text-fields embed the font they are using, but only the characters used in the fields ... and that when i style dynamic text using CSS, the font-family declaration picks up the font embedded for the static fields instead of the one I added to the library.

What I'm doing seems to be pretty strait forward -- yet it just isn't working... Someone please help.

Here's the test scenario:
in the library I've added a 'CG' font class of "Century Gothic" and exported for actionscript in 1st frame;
on the stage are static textfields using "century gothic" (logo + nav)
on the stage is a dynamic textfield that loads simple html content from external files: i.e. "<h1>title</h1><p>content</p>...",
this textfield is styled using a simple stylesheet 'h1 { font-family: "Century Gothic"; font-size:16pt... } p { font-family: "Century Gothic"; font-size: 12pt;...} ...'
dynamic textfield.embedFonts = true;

= dynamic content doesn't show up at all.

If i change the css to use a different embedded font than the one used by the static field everything works fine.

I have to use css because the content has multiple styles (different sizes, colors, etc.), using TextFormat would be a joke.
I have the use the same font for all text because I want the site to be cohesive.

I don't want to change all my static textfields to dynamic textfields because even with embedded fonts & antialiasing, some monitors display dynamic text very poorly, and for something like the logo I want to make sure its nice & quality.

There has to be workaround of some kind. The only thing I've come up with is going into photoshop and creating gif's for each of my static text fields - which seems like a rediculous hack.

Oh FYI, I've tried adding a static & dynamic textfield (with embedded font) off stage with all characters needed - didn't work.

there has to be a way to use an embedded font for dynamic fields that is also used by static fields, i mean common.

ANY help please, thanks.

View Replies !    View Related
Slow Textfield Font Rendering Of Large Text
when i put a large text in an as3 textfield with "_tf.embedFonts=true" it take a long time until the text is rendered and displayed. when i define "_tf.embedFonts=false" the text is fast rendered. are there any performance tips, what is wrong? thanks for any help!

ps: sorry for my bad english...

View Replies !    View Related
Font Issue
Why is it when I have dynamic text boxes with data from an XML file that some of the fonts turn up blurry?

I have embeded the fonts changed the fonts size and font face. I also tried a pixel font but it didn't work either.

Is this a bug in Flash?

View Replies !    View Related
Font Issue
Hi, I've read the tech notes on macromedias site and still can't figure this out. I have a True Type font on my PC and when I look at it in Flash authoring mode it looks fine (I viewed Antialias Text and it still looks fine) but when I test it in the Flash Player some of the capitals, B in particular look filled in where the hole should be. Anyone know what I'm doing wrong or are there some fonts that just won't work? Any help would be geatly appreciated! Thanks in advance.

View Replies !    View Related
Font Issue
Is there a way to do something in Flash to convert fonts to paths or outlines similar to the way you would in Freehand or Illustrator? Or is there a completely different method of handling it in Flash? The problem is that I make a button with a particular font, but when I view the Flash movie on another machine it defaults to Arial.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved