Foreign Language Dynamic Text

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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?...
    2. 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...
    3. 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...
    4. use foreign text?
      hi, How do you use/type foreign text/font (say, Vietnamese for example) in photoshop and illustrator? cheers simon
    5. 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...
  3. #2

    Default 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

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139