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




Textfield Woes, How To Anti-Alias A Dynamic Textfield?



this is driving me nuts, even if i have it marked so that my dynamic textfield is anti aliased, it still looks as if its text is aliased. And if i simply make that textfield Static, the text all of a sudden looks amazingly crisp and anti aliased.

How can i fix this?! I am attempting to load xml data into my text fields but its wasted if the text looks like crap..

So can anyone enlighten me on how to do this? i tried searching Flashs help, all i came out with was "Textfield._quality" but i do not understand what the description means exactly.. And i tried coding my textfield to _quality = "BEST";, with no avail.

Please help, i'v seen other websites with what i am sure is dynamically loaded fields, and smooth looking text... so what gives?

Thanks!



FlashKit > Flash Help > Flash ActionScript
Posted on: 02-03-2005, 01:51 AM


View Complete Forum Thread with Replies

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

Dynamic TextField With No Anti-alias
Is it possible to create a TextField, embed the fonts in library and get a text without anti-alias?

The code I'm using is this:

I attached .fla and .as


Code:
package {
import flash.display.*;
import flash.text.*;
public class Fonts extends Sprite {
public function Fonts()
{
var field:TextField = new TextField();
var format:TextFormat = new TextFormat("Verdana", 10, 0x000000);
//
field.defaultTextFormat = format;
field.autoSize = TextFieldAutoSize.LEFT;
field.embedFonts = true;
field.selectable = false;
field.antiAliasType = AntiAliasType.NORMAL;
field.text = "My text is blurry";
//
this.addChild(field);
}
}
}
But it is blurry...

Only Anti-alias Text Possible In Textfield MC? Flash5
Hi,

I have a MC which has scrolling functionality. In it, I have a textfield that will only be displayed anti-aliased. But I want to use device font since the rest of the site has dynamic textfields and not static textfields. Is it possible to show device fonts within a mc?

The thing is that this MC also contains images that need to scroll along with the text, that's why I had to make a MC instead of a scrolling textfield.

Thank you en regards,
Michiel

FMX2004 - Alias Dynamic Textfield
is there a way to have dynamic textfield be aliased when load external data into it? everything works fine w/ anti-alias but as soon as i check 'alias' nothing appears. i'd like to avoid using pixel fonts if possible.

anyone have a solution?

Dynamic TextField Woes
Hey folks,

I am trying to create a word by word animation of a string, using setInterval to animate each word through a loop.. here's the code...


Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;

MovieClip.prototype.move = function(intX,intY){
new Tween(this, "_x", Regular.easeOut, this._x, intX, 8, False);
new Tween(this, "_y", Regular.easeOut, this._y, intY, 8, False);
}

message_string = "This is a test of the flash dynamic system.";
message_array = message_string.split(" ");

_global.increment = 0;

function starttext() {
currentClip = "container" + increment;
currentText = "label" + increment;
a = increment - 1;
prevClip = "container" + a;

_root.createEmptyMovieClip("container" + increment, this.getNextHighestDepth());
currentClip.createTextField("label" + increment, 1, 0, 0, 150, 20);
currentClip.currentText.text = message_array[increment];

// skip first clip, then animate each following clip to stack horizontally
if (currentClip != container1) {
currentClip.move(prevClip._x + prevClip._width, prevClip._y)
} else if (currentClip == container1) {
container1.move(60,200);
}

// style for text
currentClip.currentText.background = true;
currentClip.currentText.backgroundColor = 0xff33cc;
currentClip.currentText.autoSize = true;

_global.increment++;
if (increment >= message_array.length) {
clearInterval(copyInt);
}
}

copyInt = setInterval(starttext, 200);
I can't seem to find a way to concatenate the variables to work dynamically, or else I have no idea what i'm doing.. lol. I've tried concatenating the variables a number of different ways and I keep having a lot of trouble with it. Well i'd appreciate any help or a point in the right direction, thanks.

here's an FLA showing how it's supposed to work.. but it isn't dynamic in the FLA.. but export it and look at the SWF and you'll see what i'm trying to do.

Thank you!
mikey99

Dynamic Text Anti-alias? How?
I have a dynamic text box that keeps the score...but the text isn't anti-alias..is it possible and how?

cheers, stuart

Anti-alias Dynamic Text?
Hey,

My movie is loading external text files during playtime but it seems that the text in those isn't anti-aliased. It looks all coarse!

Anyone know why this may be? I would've thought it should automatically be anti-alias.. Tried looking in properties in Flash but can't spot anything out of the ordinary..

Is there a way I can specify this? The texts are stored as variables in normal notepad text files by the way..

Would really appreciate it if anyone can help!
Thanks

Sez

Anti-alias With Dynamic Text?
Hi,
is it possible to smooth (antialias) dynamically loaded text in Flash?
Or is it just not possibel?

thanks
uli

Anti-alias And Dynamic Text That STRETCHES
I'm using Flash 8.
I have a button that loads dynamic text into a Text box using this actionscript.

on (release) {
loadText = new LoadVars();
loadText.load("sometext.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
_root.textBox.outsideFilename.htmlText = this.externaltext;
}
};
}

Everything works fine -- EXCEPT when I use "Anti-alias for readability" (and use a non-standard font and embed certain character sets) all the text in the Text Box comes out elongated up and down -- it comes out looking stretched for some reason. Why is Flash doing that? How can I prevent that? What am I doing wrong? Because it looks horrible with the particular font that I want to use. Thanks for any advice.

Problems With Dynamic Text - No Anti-Alias
Hi.... I'm having problems using dynamic text in flash. I need a text area that can hold a lot of code. I would like to use a monospace font, small size, scrollable text area and NO anti-alias. Shouldn't be a problem, right?

Well it seems to be. With a dynamic text field, the text WILL NOT display when set to _typewriter. I've never had this problem before, usually text won't display only when I'm using anti-alias settings and don't embed the fonts, not when I'm NOT using anti-alias. Also in the past, unless I'm dynamically rotating the font, it should default to a device font even if I forget to embed.

So how can I get a small, crisp looking font on a scrollable text area? Does the TA HAVE to be dynamic to be scrollable? Is there something I'm not remembering about using _typewriter/_sans/_serif device fonts? This is such a strange problem. I've tried other fonts...courier, arial. NONE of them will display... they only display when embedding and then they look like crap because they're small and anti-aliased...someone help!

MX Dynamic Text Anti Alias Question
I created a file in MX 2004 Professional with some dynamic text to show the date. Can I make the date text show smoother by anti aliasing it? I typed some static text to test it out and the static text looks great, but the dynamic text looks really jagged, even though they both have anti alias applied.

TIA!

Dynamic Text Anti-alias Trouble
I have a menu with MovieClips working as buttons. When the mouse is over the button a short description is supposed to show up next to the menu. It work fine, but I want to make the dynamic text anti-aliased. To do that I have to embed the font, and when I do that no text shows.

Note: The value "This one shows..." below is visible before any button is "hovered", but then it disappears when you're over a button.

The font is imported to the library and is callad Verdana-Edo and link for AS export.
"Knapp_mc" & "Knapp_mc2" are the two buttons.

How can this be solved?

Here's the AS: (located in separate layer in frame 1 in the Stage 1 Timeline)


stop();

var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "Verdana-Edo";

this.createTextField("textruta2", this.getNextHighestDepth(), 30, 30, 190, 45);
textruta2.text ="This one shows...";
textruta2.wordWrap = false;
textruta2.embedFonts = true;
textruta2.border = true;
textruta2.setTextFormat(my_fmt);
textruta2.antiAliasType = "advanced";



Knapp_mc.onRollOver = function () {
textruta2.text ="Hello world";
this.reverser_mc.gotoAndStop(1);
this.play(1);}

Knapp_mc.onRollOut = function () {
this.reverser_mc.gotoAndPlay(2);
textruta2.text = "";}

Knapp_mc.onPress = function () {
this.gotoAndStop(17); }

Knapp_mc.onRelease = function () {
this.gotoAndStop(1); }



Knapp_mc2.onRollOver = function () {
this.reverser_mc.gotoAndStop(1);
this.play(1);
textruta2.text = "Menu button hint"; }

Knapp_mc2.onRollOut = function () {
this.reverser_mc.gotoAndPlay(2);
textruta2.text = ""; }

Knapp_mc2.onPress = function () {
this.gotoAndStop(17); }

Knapp_mc2.onRelease = function () {
this.gotoAndStop(1); }

HTML Dynamic Text = Anti Alias
Does anyone know how I can have
a dynamic text box with HTML coding
enabled without the text being anit-aliased.
I am using the FFF Harmony pixel font
and whenever I choose to embed the
font it comes up very blurry when my
movie is published. Anyone???........

Thanks

How Do I Make Anti Alias Text In A Dynamic Textbox?
I am trying to insert a external text file into my SWF, and am wondering how to set it so that the text appears as anti alias, please help. Thanks.

Problems With Anti-alias Dynamic HTML Text
Hi -

I have looked for answers and fiddled for a long time now and I know I am probably missing something obvious. So hopefully someone can help...

I have a dynamic HTML textfield that is placed on stage in a MovieClip. The following code is used in a function that updates the textfield with the "strCorrect" variable:

Code:
feedback_mc.correctFeedback_txt.autoSize = "left";
feedback_mc.correctFeedback_txt.html = true;
feedback_mc.correctFeedback_txt.htmlText = strCorrect;
I also have code on specific frames that set the strCorrect variable (this is part of a quiz, so each frame is a question with different a different feedback variable.):

Code:
strCorrect = "That is <I>correct</I> for Q1!";
I am publishing to Flash 8 and everything works fine and lovely, but the text is not anti-aliased. Here is the catch, when I try to use the "Embed..." button in the textfield properties inspector, it gets messed up. Specifically, my text shows up nicely anti-aliased, but the HTML tags and all the text in between them dissappear (in this case I get "That is for Q1!")

I have played with the little HTML toggle in the properties inspector and I have tried to switch it to just a textfield and use that toggle button instead of HTML text. I also tried other HTML tags (<b> <B> etc.) to see if Flash was being picky about something like that...same problem.

Does anybody have any ideas?

Thanks in advance for any help you can provide.

Dynamic Text (HTML) Vs Anti-Alias For Readability
Hello Everyone,

I have a website that is using the new fancy Anti-alias for Readability feature in Flash 8. All is fine and well however, when using this with a Dynamic Textbox rendering HTML funny things start happening. When rolling over a link, kerning for the entire section of text changes slightly and reverts to normal when rolling out.

See the "Home" section on this site for a real live example of the problem: http://www.mercuryfilmworks.com/mercury_filmworks.html

The question is, what is going on here? I don't really understand the problem let-alone know how to fix it.

Any help would be greatly appreciated.

Cheers

[Textfield] No Alias Text Property?
Am I missing something here? Is there a alias text property to textfield?
Because there should be! Again (just like with the skewing thing) Macromedia forgot to implement AS for this feature, didn't they... ?

Heup!

Link In Dynamic Textfield To Jump To Section Of Same Textfield
Howdy all,

I know you've all seen this before - you are on a website and you click a link and you stay on the same page but jump down to a different section of the page. Like an FAQ page or something where all the questions are listed above but you click on one and jumps down to the answer below.

Is it possible to do this in a dynamic (scrollable) textfield with externally loaded text files in Flash? I don't have DW and I know that there are limited html tags available but if anyone knows an easy way to do this please let me know!

thanks!

Link In Dynamic Textfield To Jump To Section Of Same Textfield
Howdy all,

I know you've all seen this before - you are on a website and you click a link and you stay on the same page but jump down to a different section of the page. Like an FAQ page or something where all the questions are listed above but you click on one and jumps down to the answer below.

Is it possible to do this in a dynamic (scrollable) textfield with externally loaded text files in Flash? I don't have DW and I know that there are limited html tags available but if anyone knows an easy way to do this please let me know!

thanks!

Why Oh Why Does Arial Size 11 (bitmap Text/no Anti-alias) Go Wrong When Its Dynamic?
I have created 2 text fields within flash. Both contain exactly the same text. One is dynamic, the other is static. I have embedded the font for the dynamic text field. How come they look so different? Is there a way of fixing this?

Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.

what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?

(sorry if i sound confused over this. that's because i am.)

thanks in advance for any help

[F8] Input Textfield Inside A Dynamic Textfield?
Hi,

Is it possible to place an input textfield inside a dynamic textfield?

I'd like to replace the variable, this.nTotal, below with an input textfield.
Is there some way to do this?

this.txtComplete.text = "There are " + this.nTotal + " pages in " + this.sGirlName + "'s book.";

Thanks!

Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.

what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?

(sorry if i sound confused over this. that's because i am.)

thanks in advance for any help


||| O ^ | + O ¬

Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.

what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?

(sorry if i sound confused over this. that's because i am.)

thanks in advance for any help


||| O ^ | + O ¬

Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.

what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?

(sorry if i sound confused over this. that's because i am.)

thanks in advance for any help


||| O ^ | + O ¬

TextField Woes...
is there anyway to get the x coordinate of teh caret w/ in a text field... i know of Selection.getCaretIndex() ... but this simply returns the character value by which the caret is located....

and i know you could try to derive a formula using Selection.getCaretIndex() to estimate the x value... however this will not work with different fonts... any ideas???

TextField Woes...
is there anyway to get the x coordinate of teh caret w/ in a text field... i know of Selection.getCaretIndex() ... but this simply returns the character value by which the caret is located....

and i know you could try to derive a formula using Selection.getCaretIndex() to estimate the x value... however this will not work with different fonts... any ideas???

CSS Textfield Target Woes
Has anybody come across a way to style a textfield inside a movieclip using css? as all my efforts only seem to work when the textfield is on the main timeline. Am I missing something? As soon as I place the textfield inside an MC, the css/html tags are embedded. And if I force TextHolder.htmlText all I get is standard html styling ... no css styling!?

code:
myStyle = new TextField.StyleSheet();
myStyle.load("example.css");
TextHolder.styleSheet = myStyle;
thisText = new LoadVars();
thisText.load("example.txt");
thisText.onLoad = function(success) {
if (success) {
TextHolder.text = thisText.myText;
}
};

HTML Textfield Woes...
Anyone encounter/know a fix for the following?

Bringing html text and putting back into a html text box ie.

someTextfield_txt.htmlText=someHtml;

Results in spaces between tags being ignored ie.

<i>This</i> <b>has got to be a bug</b>

Returns:
Thishas got to be a bug

Even though the HTML was originally generated using flash anyway.

I'm sure I've read about this somewhere, but can't think where, anyone know a quick fix?

Cheers

MM

Textfield Woes, Whats With The Weird Scaling?
now its "scale" may be the wrong use of that word because i am aware of the _yscale attributes of textfields (however i am not fully understanding of what its for, so if it pertains to my question plz enlighten me lol).

My problem is that if i put in a dynamic text field on my stage, and resize it in the properties window (its width/H), it ends up messing the size of the fonts and whatnot.

I can have a tiny box with like 70 Size Font and its still fairly small. Or i can have a big box and 12 Size Font and the font is huge.

I can work around this by simply adjusting the font size anytime i change the size of the box, but it also doesent seem to stay in ratio scale or w/e. As in it will become extremely skinny/fat/tall ect.. sometimes lol.


Please clue me into what is with this and what is the best way to never deal with this annoying problem again. Thanks!

Anti Anti-alias Text
Hi, everybody!

I´m wondering about using static text,
´cause if smooths the fonts too much
and causes it to be almost unreadable.

Well...

I guess that this trouble can be solved
by using dynamic text, but in flash MX,
when you´re using dynamics text boxes,
it gives your swf too many parameters
refering to only a text box.

I don´t want to pump a huge amount of
parameters and useless values without
a need of that.

So... I want to know if is there another
way to prevent the fonts to smooth
instead of using dynamic boxes.

Is there a way?

Thanx in advance.

Zerooito

Static Text (device Fonts) Vs. Dynamic Text (anti-alias Non-embedded)
Any thoughts on which is better to use?

When i use static text and device fonts (arial) the text looks great. The text doesn't change so no need to be dynamic.

Or

I use dynamic text (arial) non-embedded and it looks good too. The text doesn't change but leaving it as dynamic makes it render better.

Anti-Alias
Hello everyone..

I'm puzzled. At work, we want to make a "control panel" on our web site which will have music selections and etc.. and we want to use very small font. But in Flash, the anti-alias makes the text unreadable. We tried importing the text as vector but that didn't work either.

I've noticed a lot of sites don't have this problem (like Ego Media)..

Does anyone know the answer? I'll give you a lollypop!


Thanks in advance..

Tony

Anti-alias
how do you make text in flash not antialias. the size of the text is so small that the anti-aliasing in flash makes it blurry and difficult to read. thanks!

Anti Alias In MX
In MX 2004 theres a handy dandy anti alias button for dynamic text fields, but in Flash MX there is not! I know theres a _quality script that when you set to low it takes of alias but that takes it off globally, not just for the text field that I specify, thus, how do I, using actionscript or some other method, remove aliasing from a specific specified dynamic text field.

Anti-alias, Yes Please
OK, try and keep this simple...

I have a site that has dynamic text fields that load external text from an XML file, which also use CSS.

I'm wanting to use a fancy-ish font, which just looks crappy if it's not smooth (aka blurry).

I've tried embedding the font, but nothing shows after I publish and nothing I seem to do will work. It always comes back empty or aliased.

Any help or a point in the right direction will be greatly appreciated.

Anti-alias, Yes Please
OK, try and keep this simple...

I have a site that has dynamic text fields that load external text from an XML file, which also use CSS.

I'm wanting to use a fancy-ish font, which just looks crappy if it's not smooth (aka blurry).

I've tried embedding the font, but nothing shows after I publish and nothing I seem to do will work. It always comes back empty or aliased.

Any help or a point in the right direction will be greatly appreciated.

Anti-alias
um.. in flash, how do i make a published swf so that the text in it is NOT anti-aliased? the pixelfont looks really blurry when it comes out..

Anti-alias, Yes Please
OK, try and keep this simple...

I have a site that has dynamic text fields that load external text from an XML file, which also use CSS.

I'm wanting to use a fancy-ish font, which just looks crappy if it's not smooth (aka blurry).

I've tried embedding the font, but nothing shows after I publish and nothing I seem to do will work. It always comes back empty or aliased.

Any help or a point in the right direction will be greatly appreciated.

Anti-alias
um.. in flash, how do i make a published swf so that the text in it is NOT anti-aliased? the pixelfont looks really blurry when it comes out..

How To Not Anti-alias Text?
I'm having a problem turning off anti-aliasing in my text, I tried having the text within a movie clip and using:

onClipEvent(load) {
this._highquality = 0;
}

it doesn't anti-alias - but damn, it looks like crap? When I do the same in photoshop with the same font size and all, it looks fine. The font i'm using is Arial 10pt ... and it comes out wretched! Any help?

Turning Off Anti Alias
Hi,
I'm looking for a way of turning antialias off for certain bits of text.
I dont want to do the global change using _quality commands etc, 'cause I have other bits of text like headers which look nice antialiased, just the small text becomes illegible when antialiased.

Any ideas how?
Sorry if this topic has already been covered before.

Anti Alias Text?
I am using Mx and it doesn't seem to matter if I choose ant-alias or not my letters are still jaggy edge.

what the heck can I do to get rid of this?

Thank you

CreateTextField Will NOT Anti-alias
OK, I've searched the board and read what everyone suggests and I've checked what everyone suggests for this problem. But no solution.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I can't get my createTextField to be anti-aliased.

I have other NON dynamic text fields on the stage with Embedd ALL font outlines on them.

How do I set a dynamic text field created with createTextField.
If I'm using the same fonts and sizes as those in the NON dynamic fields shouldn't my dynamic fields recognize the font outlines from them? They don't seem to.

How can I force the Anti-aliasing to a dynamic field, just like I assign the font and type.

I'm using MX and outputting as Flash6.

Thanks in advance.

Anti-alias Text
MX2004 Pro

I've got some fixed dynamic text (dynamic because I want to scroll it) that the client wants in italic font at 14 point.

Whilst the normal font looks great, the italic looks poor due to lack of anti-aliasing. I can't find an anti-alias option for this type of text.

Is there a way to have text within a FLA that is rendered using anti-aliasing, or is that only available for external HTML text?

Anti Alias Question?
i have a picture (bmp, gif, jpeg, tried these three formats for the same pic), and everytime i rotate it, the lines/edges becomes jagged.

how do i solve this? or is there a better pic format to use that does not lose quality when manipulated?

thanks a lot!!!!

Anti-alias Text?
I notice all the text I created in Flash does not have anti-alias turned on... is there a way to do anti-alias besides going back to bitmap and importing them to Flash?

Anti-alias Question
I am creating a presentation (like PowerPoint) and am using createTextField so I can create and animate my points on the fly I got that to work on my test file, but when my text comes in it looks like junk. Is there a way to turn on Anti-alias for animation; if so, do I add that to my createTextField section or would I put that in my TextFormat section? Also, how can I control my points to come in one at a time when I press the down arrow key?

-Thanks

Problem With Anti-alias
When I use objects created in Illustrator, and even text created in Flash too, I got some problems with anti-alias. Even though the button anti.alias is checked, my text never appears smooth enough :-(

Someone knows whats wrong?

Anti-alias Text From XML?
Ok, I searched for this topic, and haven't come up with a definitive answer, so I thought I'd ask.

I have some text pulling in from an XML file, and then displaying in a dynamic text box (we'll label it message1). When the text is displayed, there is no anti-aliasing on it, even though the text box was set to anti-alias for animation. I read in a similar post that embedding a font would allow this. Would that work, or do I need to try something else?

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