Should be like this..
var test2 = "A B C D <B> E F G <I> H I J K </i></B> <i>L M N O </
I> P Q R S T";
if you want these results.
A B C D - regular font
E F G - bold
H I J K - bold+italic
L M N O - italic
P Q R S T - regular font
Karl
On Nov 17, 2009, at 6:30 AM, Andrei Thomaz wrote:
intersection is not "correct" HTML, right?
On Tue, Nov 17, 2009 at 10:03 AM, Greg Ligierko <gre...@l-d5.com>
wrote:
I noticed a difference in how Flash CS3 and simple HTML page parses
<b> and <i> tags.
For example:
var test2 = "A B C D <B> E F G <I> H I J K </B> L M N O </I> P Q R
S T";
txt.htmlText = test2;
Flash produces: A B C D - regular font
E F G - bold
H I J K - bold+italic
L M N O - bold+italic
P Q R S T - bold
(it completely ignores the closing </B> tag).
While using the same string, pure HTML produces (as we could expect):
A B C D - regular font
E F G - bold
H I J K - bold+italic
L M N O - italic
P Q R S T - regular font
(clearly considers closing bold </B>).
Conclusion - Flash allows nesting <b><i>...</i></b>, but does not
allow intersecting two style formatting, like <b>...<i>...</b>..</i>
(I'm not sure if "intersection" is an appropriate word in this case).
Am I right here ?
g
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders