Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / September 2005



Tip: Looking for answers? Try searching our database.

Foreign Language Dynamic Text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pluviosilla - 17 Sep 2005 19:52 GMT
Is it possible to load a foreign language in a .txt file??
Whenever I try all the foreign accents and characters are displayed as white
boxes. :(
I've tried embeding fonts which doesn't work either.
I included the actionscript code I tried using to load the txt file.

Thanks a lot

// Create text field.
this.createTextField("my_txt",10,0,0,526,548);
var m_font:TextFormat = new TextFormat();
m_font.font = "Times New Roman";
m_font.size = 12;
my_txt.wordWrap = true;
my_txt.embedFonts = true;
my_txt.setTextFormat(m_font);
this.createClassObject(mx.controls.UIScrollBar, "my_sb", 20);
// Set the target text field for the scroll bar.
my_sb.setScrollTarget(my_txt);
// Size it to match the text field.
my_sb.setSize(16, my_txt._height);
// Move it next to the text field.
my_sb.move(my_txt._x+my_txt._width, my_txt._y);
// Load text to display and define onData handler.
var my_lv:LoadVars = new LoadVars();
my_lv.onData = function(src:String) {
    if (src != undefined) {
        my_txt.text = src;
    } else {
        my_txt.text = "Error loading text.";
    }
};
my_lv.load("Resources/mission-statement.pdc");
PK - 25 Sep 2005 14:32 GMT
Hi:

I use:

System.useCodepage=true;

On the first line of the first frame.

Philipp Knetemann
Developer/Webmaster
http://www.SpanishOnPatrol.com
Spanish For Police, Fire, Emergency Personnel, and Law Enforcement

> Is it possible to load a foreign language in a .txt file??
> Whenever I try all the foreign accents and characters are displayed as
[quoted text clipped - 30 lines]
> };
> my_lv.load("Resources/mission-statement.pdc");
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.