Solved

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

Posted on 2004-10-14
6
185 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
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…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

762 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

19 Experts available now in Live!

Get 1:1 Help Now