A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: characters for dynamic text

  1. #1
    Can someone please point me in the direction where I can find information about what characters are supported in an external .txt file that I can use to import variables to my .swf files?

    How can I include characters like +, & and / ????

    Is there a chart or equivilent on the web somewhere?

  2. #2
    Don't Lick Jesus on a Stick whiteshadowx's Avatar
    Join Date
    Jun 2000
    Location
    Dallas
    Posts
    227
    all of them are supported aside &, but there is an easy way to adjust for this, or any character for that matter.

    If you have something writing to the text file, have it change the symbol to something like §38 (the § is character 21, and yes flash supports it.) 38 is its ascii character code, it just seemed a fitting number.

    okay, have it change it, then, after flash reads the text file, have it do some post processing to change §38 to & ... Get it?

    Hope that helps.

  3. #3

    I'm close, but still a little confused

    I understand, but could you help me to understand how to exchange chartacters in Flash. How do I do a Find and Replace??

    ie: post processing

  4. #4
    Don't Lick Jesus on a Stick whiteshadowx's Avatar
    Join Date
    Jun 2000
    Location
    Dallas
    Posts
    227
    Set Variable("count" = 0)
    Loop While (count < Length(string))
    Set Variable ("count" = count + 1)
    teststring = Substring(string,count,3)
    if ("teststring" eq "§38")
    Set Variable("string" = Substring(string,1,count-1)&"&"&Substring(string,count+4,Length(string)-count+4)
    End if
    End Loop





    Hope that helps

  5. #5
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    Checkout this techonte on the macromedia site for help with url encoding which is what you need to use in your textfiel:

    http://www.macromedia.com/support/fl...l_encoding.htm

    Hope that helps!!
    Regadrs Flashguru

  6. #6

    Smile

    Thanks Whiteshadowx and Flash Guru!
    I appreciate it!!

    - 8r14n
    [Edited by 8r14n on 09-06-2000 at 05:25 PM]

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