A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: External text in Flash AS2 but written in other languages (Greek_Chinese- etc)

  1. #1
    Senior Member
    Join Date
    Mar 2007
    Posts
    107

    External text in Flash AS2 but written in other languages (Greek_Chinese- etc)

    Hi...i cant make this work... even though there must be a simple explanation to this...

    This code works fine
    myData = new LoadVars();
    myData.onLoad = function(){
    myText_txt.text = this.content;
    };
    myData.load("Tips.txt");

    stop();

    It loads from a Tips.txt file...but it works only when the content insight is written in English... i tried other languages like Greek for example.. and it wont load the text.. Any ideas how to fix this?

    i tried saving the .txt in UTF-8 and also ANSI but still nothing... do i have to change something on the FLA or in my txt file?

    Thank you Good People

  2. #2
    Senior Member
    Join Date
    Mar 2007
    Posts
    107
    Ok i fixed this...here is the right code

    var myData = new LoadVars();
    myData.onLoad = function() {
    myText_txt.text = this.content;
    };
    myData.load("Diet_Tips.txt");

    I was missing a var at the first line... no big deal...

    I got another question for you though...
    Most of the fonts dont accept foreign languages from the txt file....
    They only display with Arial and Times new Roman... however i need something more exciting... are there any fonts that can display Greek with calligraphy?

    Thanks again for your time and help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center