all groups > flash data integration > september 2006 >
You're in the

flash data integration

group:

Put html tag in xml genreted with strings panel


Put html tag in xml genreted with strings panel tof69
9/26/2006 11:50:28 AM
flash data integration:
Hello,
I created an multilanguage application with the "strings "panel.
My customer need to put some words in italic inside the dynamic textfield.
So I used [I] tag or cdata tag insied the xml, but nothing works, even if I
put the textfield in "html" format.
So How can I do.
Do we need to change the "locale.as" class?
thanks.
Regards,

Re: Put html tag in xml genreted with strings panel dan mode ->Adobe Community Expert
9/26/2006 5:26:27 PM
Is the dynamic text field set to embed the fonts? (Properties Panel >
Character.... radio button clicked to specify ranges)
If it is, set it to no characters. Also make sure your dynamic text field
is set in the properties panel to render as html.


Here is a test:

Create a new Flash document, select the text tool from the tools menu and
create a text area on the stage. Make it a dynamic text field in the
properties panel and click the render as html button. Give it an instance
name of "myText" and on frame one of the main timeline put the following
actionscript.

myText.htmlText = "<i> This is Italics</i>. This is not"

Test the movie and it should show what you are looking for.
--

Dan Mode
--> Adobe Community Expert
*Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio* http://www.tornadostream.com
*Must Read* http://www.smithmediafusion.com/blog



[quoted text, click to view]

Re: Put html tag in xml genreted with strings panel tof69
10/2/2006 12:00:00 AM
thanks for your answer
I don't understand exactly what you're meaning in the first paragraph.
I use strings panels for my application.
It means that all the texts are loaded directly from the xml created by flash
itself.
So I don't understand why you spoke about this :
myText.htmlText = "[I] This is Italics[/I]. This is not"


then all the fonts used are embeded, when you spoke about that,what do you
mean?
thanks.
Regards,



Re: Put html tag in xml genreted with strings panel tof69
10/2/2006 12:00:00 AM
if I put the code :
myText.htmlText = "[I] This is Italics[/I]. This is not";
it's works.
the problem is that the text is loaded by flash with the string panels.
So how can I tell to flash to directly consider the textfield as htmlText?


AddThis Social Bookmark Button