Ask a Question related to Macromedia Flash Data Integration, Design and Development.
-
pluviosilla #1
Foreign Language Dynamic Text
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");
pluviosilla Guest
-
InDesignCS Foreign Language Formatting
I am looking to be able to format the following languages in InDesign: • Thai • Indonesian • Arabic Does anyone know of a resource for this?... -
text in foreign languages
I have a version of Illustrator 10 that I used to design a card game. I would like to change the text in my card game to a non roman foreign... -
Foreign language text in Director
I am reletively new to Director. I have a project whereby I need to view and scroll up and down text in six languages, including Japanese. There... -
use foreign text?
hi, How do you use/type foreign text/font (say, Vietnamese for example) in photoshop and illustrator? cheers simon -
can I cut & paste foreign text in dreamweaver MX?
Ive tried to do this and the characters do show up but they appear backwards like in english you read left to write im trying to paste arabic text... -
PK #2
Re: Foreign Language Dynamic Text
Hi:
I use:
System.useCodepage=true;
On the first line of the first frame.
Philipp Knetemann
Developer/Webmaster
[url]http://www.SpanishOnPatrol.com[/url]
Spanish For Police, Fire, Emergency Personnel, and Law Enforcement
"pluviosilla" <webforumsuser@macromedia.com> wrote in message
news:dghoma$icm$1@forums.macromedia.com...> 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 Guest



Reply With Quote

