A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: flashVars and extended Characters...

  1. #1
    I have an icon and U dont! johnwun's Avatar
    Join Date
    Nov 2000
    Location
    Santa Cruz, CA
    Posts
    258

    flashVars and extended Characters...

    I am sending unicode encoded variables to my swf with flashVars in the object imbed tag.

    It's not working...


    éèêëą = no workie
    flashvars sent like this var1=%E9%E8%EA%EB


    I enabled the textfields to contain "all characters" and I checked the font, which DOES have the chars I need...

    But when the flash movie gets the variables, all the "funny" characters display as blank...
    HELP!!!
    Last edited by johnwun; 02-20-2004 at 03:37 PM.
    [a.fun>b.fun ? trace("do(a)") : trace("do(b)");

    wundes.com

  2. #2
    Senior Member Shotsy247's Avatar
    Join Date
    Apr 2001
    Location
    Be there in a minute!
    Posts
    1,386
    I have had a similar problem while trying to display BOLD characters of an embedded font set. They just wouldn't display.

    The solution, was to create a dynamic text field off screen that contained BOLD characters and then they were embedded. You may try palcing the characters in at dynamic text field, off screen. Set that field to embed the characters.

    _t
    I don't feel tardy.

  3. #3
    I have an icon and U dont! johnwun's Avatar
    Join Date
    Nov 2000
    Location
    Santa Cruz, CA
    Posts
    258
    Thanks Shotsy...

    In this case it's not my problem, but I have gotten that to work...


    I have a theory here which MAY work... I think my unicode encoding is incorrect.

    As above I was using the % sign and the two character ID...

    I found an example of unicode in flash that does work.
    I believe it will work if I change my encoding scheme to this format:
    \u00c5 \u00c6 \u00c0 \u00c1 \u00c2

    I'll post back if it fails...
    [a.fun>b.fun ? trace("do(a)") : trace("do(b)");

    wundes.com

  4. #4
    I have an icon and U dont! johnwun's Avatar
    Join Date
    Nov 2000
    Location
    Santa Cruz, CA
    Posts
    258
    ...it failed...


    any other ideas?
    [a.fun>b.fun ? trace("do(a)") : trace("do(b)");

    wundes.com

  5. #5
    Senior Member
    Join Date
    Aug 2002
    Location
    Philadelphia, PA
    Posts
    274
    hopefully this can help you. macromedia to the rescue!
    Ohhhh jeez.......not again.

  6. #6
    Senior Member Shotsy247's Avatar
    Join Date
    Apr 2001
    Location
    Be there in a minute!
    Posts
    1,386
    When you embedded your font to include all characters, did you check off Latin 1? I think that is the character set that contains those characters.

    Other than that, sorry, I can't think of anything else.

    _t
    I don't feel tardy.

  7. #7
    I have an icon and U dont! johnwun's Avatar
    Join Date
    Nov 2000
    Location
    Santa Cruz, CA
    Posts
    258
    quov: No, I tried that approach in my first post. It doesn't seem to work with flashvars...

    shotsy: Check off Latin1??? Can't find that anywhere, I'm curious where it is...

    I've gotten it to work in a limited fashion.
    (my CF code was URL encoding them)
    Apparently if you populate the flashVars with the actual letters it works for all unicode letters under 255. That SHOULD be all I need in this case.
    For the sake of the forum, I'd still like to find a better answer that works for ALL unicode in flashVars, so if anyone has more ideas, please post them...

    I remember that oldNewbie posted something about adding a line in the AS that said "use unicode page" or something, but I can't seem to find it. I think it was regarding XML when I read it, but I'd still like to find the reference...
    [a.fun>b.fun ? trace("do(a)") : trace("do(b)");

    wundes.com

  8. #8
    Senior Member Shotsy247's Avatar
    Join Date
    Apr 2001
    Location
    Be there in a minute!
    Posts
    1,386
    Sorry, I think that may be only 2004.

    _t
    I don't feel tardy.

  9. #9
    Senior Member Shotsy247's Avatar
    Join Date
    Apr 2001
    Location
    Be there in a minute!
    Posts
    1,386
    The code you are looking for is:

    useCodepage();

    Check the help file under that for further info about unicode.

    _t
    I don't feel tardy.

  10. #10
    I have an icon and U dont! johnwun's Avatar
    Join Date
    Nov 2000
    Location
    Santa Cruz, CA
    Posts
    258
    shotsy: Yeah that's the one...

    After reading about it, it looks like more of a problem than a help. I want my text to display uniformly on all systems, and useCodepage() is reliant on each systems local mappings...

    Thanks for finding the command tho...
    -J
    [a.fun>b.fun ? trace("do(a)") : trace("do(b)");

    wundes.com

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