Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-15-2009, 05:18 PM   #1
vardine
Registered User
 
Join Date: Apr 2009
Posts: 5
Default Reading data from XML

In my flex project I read data from XML for TextArea. But when I want change color some words in text with this way

<txt>![CDATA[<FONT FACE='sub_menu' SIZE='17' COLOR='#ff0000'>The origin and development</FONT><FONT FACE='sub_menu' SIZE='17'> of mathematical symbols are not entirely clear. </FONT>]]</txt>

spaces are not recognized and I had follow
The origin and developmentof mathematical symbols are not entirely clear.

Where is problem and how to solve it. Please help me!
vardine is offline   Reply With Quote
Old 07-15-2009, 05:23 PM   #2
wvxvw
Holosuit User
 
wvxvw's Avatar
 
Join Date: Oct 2006
Location: Tel Aviv
Posts: 4,301
Send a message via ICQ to wvxvw
Default

Spaces at the beginning and and of the XML / HTML tags of type "text" are trimmed - nothing you can do about it (that's actually is an XML standard, all the implementations I know behave the same way here), well, unless you replace them with
Code:
&nbsp;
or something like that.
__________________
The .NET open source editor for Flash and web developers
*This would be my contribution to the project*
couchsurfing if you need it
wvxvw is offline   Reply With Quote
Old 07-16-2009, 11:40 AM   #3
vardine
Registered User
 
Join Date: Apr 2009
Posts: 5
Default

Thank you for reply. It's help me.
vardine is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:41 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.