Groups | Blog | Home
all groups > flash actionscript > may 2005 >

flash actionscript : some.htmltext crashes


voodoo[lv]
5/28/2005 12:00:00 AM
The problem is :
I have got a dynamic text box. I`m feeding it with htmltext. Everything goes
allright.
Except when I try to give to it Unicode (Basic Latin and Latin A extended
ranges). The text shows only till the first unicode character.
I`ve tried to change the "character" range for the text box, but if I add the
"Basic Latin A extended" range, the text box show nothing!
I can`t figure it out...
kglad
5/28/2005 12:00:00 AM
voodoo[lv]
5/29/2005 12:00:00 AM
If I understood right, then character embedding is when I "specify ranges" for
the font. If that`s right then I did it so. I specified the "Basic Latin A
extended" range, but when I did so, the textfield showed nothing even the lines
before the unicode where gone!

Here`s some lines of code: The flash shows text only till "like "...

<P>Hello world!<BR>This is a test.<BR>I like to write characters like &#257;
&#275; &#363;!</P>
kglad
5/30/2005 12:00:00 AM
first, make sure you don't have bold or italic selected in your textfield's
properties panel. i suspect you have one or both of those selected and that's
causing you to see nothing.

second, to use url encoding in flash you must use correctly encode your
characters and use \u to indicate to flash that a unicode encoded character
follows.


http://www.macromedia.com/support/flash/languages/unicode_in_flmx/unicode_in_flm
x08.html
voodoo[lv]
5/30/2005 12:00:00 AM
I have not bold either italic switched on. It`s not the problem...
And the \u trick doesn`t works, because
You cannot include Unicode escape characters in external text or XML files;
the Macromedia Flash Player 6 will not recognize Unicode escape characters in
external files

So till now I haven`t found an answer to my problem...
voodoo[lv]
5/30/2005 10:18:05 AM
Maybe the & sign makes all the thing impossible? Doesn`t flash thinks that a
new variable is starting at the & sign? If yes the how to make that then &#282
is converted to a character? IS that possible?

The external file looks like this, the something.htmltext gets the variable
article

&article=<span class="title"><P>Hello world!<BR>This is a test.<BR>I like to
write characters like &#282; !</P>
AddThis Social Bookmark Button