all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

Trying to display ? sign in flash movie! HELP PLEASE!


Trying to display ? sign in flash movie! HELP PLEASE! Cloudette12
12/14/2004 11:13:29 PM
flash actionscript:
Please HELP!! I am trying to display special characters like ? in my flash
movie. I am reading the values from an external text file. But any URL encoded
characters that should start with an & dont want to come through properly. What
is going on???
For example ? url encoded looks like this π but when I look at the values
in my external page that is passing my values it looks like this %26#960; I am
guessing the fact that the & is being URL encoded may be part of my problem.
And.. if it is the problem, how do I handle reading multiple variables from the
same external file when variable are separated by &!!! HELP HELP!! Clients are
trying to use the special characters but I cant get them to work. I would
appreciate any help. Thanks every one in advanced.
Re: Trying to display ? sign in flash movie! HELP PLEASE! kgui
12/15/2004 12:02:22 AM
You probably need to use

unescape('Hello%7B%5BWorld%5D%7D')
or
escape('Hello{[World]}');

Re: Trying to display ? sign in flash movie! HELP PLEASE! Cloudette12
12/15/2004 12:10:39 AM
Thanks for the help. I must ask. What does escape and unescape mean?

I tried your example in my swf file. It read those valuse fine. Its only when
a character has an & when it is url encoded that every thing goes nutty.
Re: Trying to display ? sign in flash movie! HELP PLEASE! Rothrock
12/15/2004 3:44:33 AM
Re: Trying to display ? sign in flash movie! HELP PLEASE! urami_
12/15/2004 12:17:49 PM

[quoted text, click to view]

You need URL encoding and here you find online converter
http://www.dommermuth-1.com/protosite/experiments/encode/index.html
You can download it for off line use (made in flash)
Just type the string and encode, it will do all for you.
Also don't forget to turn on the codepage in flash.
I know in MX it was by default OFF, don't know if the same case in MX 2004.

//timeline frame
System.useCodePage = 1;

--
<urami>
http://www.Flashfugitive.com
</urami>


<web junk free>
http://www.firefox.com
Re: Trying to display ? sign in flash movie! HELP PLEASE! rumpelstilzchenlang
12/16/2004 8:41:38 PM
I am using similar symbols in my Flash Site... the german ?(&auml) and all the
other ones like this.
All the text is loaded from an external xml file, should behave the same
manner like the text file.
I do encode the file in unicode (utf-8) (wordpad>save as>document
type>unicode) and I do write any symbol just as it is normally written (no
manually encoding, might have to be done with word for Pi I guess) and there
are no problems, if you have included the nessercary signs with the textbox you
probably use.
AddThis Social Bookmark Button