Solved

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

Posted on 2004-10-14
6
203 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't get text from a text entry 13 279
How to create a simple "throw object" gesture on as3 / air mobile ? 3 1,180
Inserting a pop up image to a scanned PDF 5 443
bandwidth 5 69
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now