Welcome to TalkGraphics.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2000
    Location
    Novosibirsk, Russia
    Posts
    10

    Default

    How can I implement "&" symbol into value of variable standing in a text
    file. The problem is: Flash understands "&" symbol as beginning of a new
    variable.
    Thanks.
    Alexei.
    IP

  2. #2
    Join Date
    Aug 2000
    Location
    Novosibirsk, Russia
    Posts
    10

    Default

    How can I implement "&" symbol into value of variable standing in a text
    file. The problem is: Flash understands "&" symbol as beginning of a new
    variable.
    Thanks.
    Alexei.
    IP

  3. #3

    Default

    You will find a whole list of replacement ascii code at this page. %26 is what you need for the & this should help you out. Regards, Bill

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

    Macromeidians 1:1

    In the begining the web was dark and void, and the net was with out color or shape, Then there was a Flash and Life came to the web and vision became reality.
    Macromeidians 1:1

    In the begining the web was dark and void, and the net was with out color or shape, Then there was a Flash and Life came to the web and vision became reality.
    IP

  4. #4
    Join Date
    Aug 2000
    Location
    Novosibirsk, Russia
    Posts
    10

    Default

    I have dynamic text in my movie. Text variables are located in a text file. All is working properly. But there is one moment. The text in my variables is on German, containing specific characters such as ö (0246) ä (0228) ü
    (0252).
    1. If I save the text file as ANSI my special characters are replaced by usual "o", "a" and "u".

    2. If I save as UNICODE Flash doesn't read text varibles from it.

    3. If I save as UTF-8 Flash converts this simbols to something else.

    Help me! And how can I resolve this problem with Russian?

    Thanks.
    Alexei.
    IP

  5. #5
    Join Date
    Aug 2000
    Location
    Toronto, Ontario, Canada
    Posts
    432

    Default

    These characters have to be URL encoded as well. You could probably use a search and replace function to replace your special characters with the URL encoding (as specified in the post above).


    hth,
    Deep (just a guy)

    <pre><font face="courier" size="2">,-----------------------------.

    | Pradeep Kumar Nair, B.Math |

    | Graphic/Multimedia Designer |

    | ICQ#: 39102360 |

    | Medius Communications, Inc. |

    | http://www.medius.com |

    `-----------------------------'</font></pre>
    Moderator - i/us Flash Forum
    hth,
    Deep (just a guy)
    --
    Pradeep Kumar Nair, B.Math
    CTO
    9 Story Entertainment
    http://www.9story.com
    IP

  6. #6
    Join Date
    Sep 2000
    Posts
    3

    Default

    I've put together a little page that will do the URL encoding for you. You can get to it by clicking here. I've not tested it in Netscape, but it works fine in IE.
    IP

  7. #7
    Join Date
    Aug 2000
    Location
    Novosibirsk, Russia
    Posts
    10

    Default

    Thanks! Your program is working super.Please, leave it!
    And what about any text on russian? Should I encode it each time?
    Alexei.
    IP

  8. #8
    Join Date
    Aug 2000
    Location
    Toronto, Ontario, Canada
    Posts
    432

    Default

    I don't think you can use the encoding for Russian. I didn't see Russian characters as part of the encoding list. Your best bet is to either embed characters, and then parse the input from the file, replacing special characters with the embedded characters, or else you can try switching to Director for your project, which will handle double-byte languages, and embed fonts, etc. Does anyone know if Flash 5 will allow you to embed fonts? From what I understand, you still can't do that, but I'm not positive...


    hth,
    Deep (just a guy)

    <pre><font face="courier" size="2">,-----------------------------.

    | Pradeep Kumar Nair, B.Math |

    | Graphic/Multimedia Designer |

    | ICQ#: 39102360 |

    | Medius Communications, Inc. |

    | http://www.medius.com |

    `-----------------------------'</font></pre>
    Moderator - i/us Flash Forum
    hth,
    Deep (just a guy)
    --
    Pradeep Kumar Nair, B.Math
    CTO
    9 Story Entertainment
    http://www.9story.com
    IP

  9. #9
    Join Date
    Aug 2000
    Location
    Novosibirsk, Russia
    Posts
    10

    Default

    Hi!
    You are right. I steel can't insert russian characters as dynamic text. There is no problems with static text, but dynamic is awfull. Your ebcoder helps with german (thank you!), but with russian I have 3 variants (in all possible combinations):
    1. 041C0430043C043020043C044B-looking like "text"
    2. no text at all
    3. strange looking characters
    I embeded font - just the same... (only increasing size of swf-file).
    Alexei.
    IP

 

 

Bookmarks

Posting Permissions

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