A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: äüö & <-- can't import them in my dynamic text field

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Posts
    14

    äüö & <-- can't import them in my dynamic text field

    hi

    so, i'm still trying to get my page "dynamic". I made some .txt documents, loading them into my dynamic textfields with

    loadVariablesNum("main.txt", 0);

    now since i have a german version, letters like ä ö ü and also & signs get lost and are not displayed.

    how can i fix that? maybe your solution goes hand in hand with the following issue, too.

    also generally i'm not really convinced of those txt files. one example is my navigation:

    i have to make the txt file like this:
    home about me contact

    meaning, with the spaces in between.. very strange i think. well it works, but i'm sure there's a nicer way to do this. any ideas?

  2. #2
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    you'll probably want to use character codes. it's simple enough, here's the basic idea
    Code:
    for(a=255;a--;)trace(a+":"+String.fromCharCode(a));

  3. #3
    Junior Member
    Join Date
    Feb 2006
    Posts
    14
    well.. one line looks simple. but unfortunately my experience with flash is not big enough, to successfully implent this idea into my page. Is is a simple line of code? could you post that?

  4. #4
    Senior Member
    Join Date
    Sep 2000
    Location
    New Zealand
    Posts
    271
    Hah! I had this problem just yesterday!

    Ok, you need to do two things!

    you need to embedd the special characters in flash for the dynamic textfields, and you also should use html special characters, ie,
    Code:
    &Aring;
    &Auml;
    &Ouml;
    &auml;
    &aring;
    &AElig;
    &aelig;
    &Oslash;
    &oslash;
    that should do it.

    I spend the better part of a day, with my workmate trying to work that one out.

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