dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: special characters from a external textfile

  1. #1
    Junior Member
    Join Date
    Nov 2001
    Posts
    23
    i am trying to load:



    and




    from a variable.txt file....


    no matter what i do it does not work..

    i have tried HTML code, and i have tried those

    \ commands, etc, etc.. but nothing is seeming to work...


  2. #2
    Junior Member
    Join Date
    Aug 2000
    Posts
    18
    for specific characters use
    escape() and unescape() functions:

    escape("") == "%E2%84%A2"
    unescape("%E2%84%A2") == ""


  3. #3
    Junior Member
    Join Date
    Nov 2001
    Posts
    23
    uh...

    ooooookkkkaaaay ?


    sooooo...

    that was sorta helpful, cept i have no clue what or where or when i should do that..

    can you explain more..

    1) do i put it in the first frame of my movie?
    i have multiple target levels...

    do i use level0

    2) do i use unicode?

    3) do i use that System.useCodepage=true

    4) do i write my in the text file? or do i write a special character code for it to display..

    thanks for helping, i hope what you have planned works...

  4. #4
    Junior Member
    Join Date
    Aug 2000
    Posts
    18
    1) these function you may use anywhere
    2) i don't test for unicode
    3) is it needfull for you?
    4) the good way is text file contain only usual symbols if you whant to translate string to escape format just run movie with this action:

    trace(escape("your string here"))

  5. #5
    Junior Member
    Join Date
    Nov 2001
    Posts
    23
    yes, i figured this out right after you posted it...

    the escape just gives me the URL encoding of whatever i put in the ( )

    now..

    if i do it = %99


    and when i view it in the flash file, it comes up like this

    ř


    no matter what i do, i get that crappy ""

    i basically gave up and just loaded the text into the movie, rather than pull it from a .txt variable...

    o well

    thanks for everyones help anyway

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