Solved

XML data loaded to flash via attachMovie function / text is blurry.

Posted on 2004-10-14
6
216 Views
Last Modified: 2012-08-14
First here's the site for your reference.

http://www.j2studios.plasmamix.com/themermaidnyc/

On the Menu section, the xml loaded text is blurry.
What can I do to fix this?

Thanks in advance.
Danny
0
Comment
Question by:enyceexdanny
  • 3
  • 2
6 Comments
 
LVL 6

Expert Comment

by:nishasrilankan
ID: 12316543
Texts in a Dynamic text Field can be get blurred due to few reasons.
1. Anti Aliasing is on
2. Unsuitable font sizes...lot of fonts are properly rendered when it used in the multiplication of the 8 (ie: font size 8 or 16)
3. if you are using pixel font..make sure you are using it with intended font size.
4. your dynamic text field sould not be placed on a fraction of X,Y co-ordinates..(x=12.7 Etc.)
0
 

Author Comment

by:enyceexdanny
ID: 12321155
it's not on a dynamic text field. It's loaded via attachMovie method.
0
 
LVL 6

Expert Comment

by:nishasrilankan
ID: 12326803
I know...if you are loading the content dynamically...that is dynamic textFiled..
0
 

Author Comment

by:enyceexdanny
ID: 12339820
the content holder for the data is on the correct coordinates.
But how would i change the font size and etc?
Since it's not an actual text field, I can't set the font or any other attributes.
Is there a way to do this via XML?
0
 
LVL 6

Accepted Solution

by:
nishasrilankan earned 125 total points
ID: 12355184
// Define a TextFormat which is used to format the stats_txt text field.
var my_fmt:TextFormat = new TextFormat();
my_fmt.bold = true;
my_fmt.font = "Arial";
my_fmt.size = 12;
my_fmt.color = 0xFF0000;
// Create a text field to display the player's statistics.
this.createTextField("stats_txt", 5000, 10, 0, 530, 22);
// Apply the TextFormat to the text field.
stats_txt.setNewTextFormat(my_fmt);
stats_txt.selectable = false;
stats_txt.text = "Lorem ipsum dolor sit amet...";

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question