?
Solved

Flash/XML <br> line spacing issue

Posted on 2010-11-29
3
Medium Priority
?
451 Views
Last Modified: 2012-05-10
I am pulling in an XML document into flash and it is formatted using CDATA as follows:

<?xml version="1.0" encoding="UTF-8"?>
<page>
   <textbox><![CDATA[test with line break<br />
thest with thelinlasdf alksdjflsdjf<br />
alksdjflj aldjsflkjsdlfsdf<br />]]></textbox>
</page>

However, when viewing the Flash movie in a browser there is double spacing between lines.  I have looked everywhere and can't find a solution to adjust the line spacing. Does anybody know how to accomplish this?
0
Comment
Question by:kageboy2003
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Expert Comment

by:petiex
ID: 34232530
I believe it is showing the hard returns you have after the <br/> tags. Try putting the whole thing on one line with only the <br/>s as line breaks.
0
 
LVL 11

Accepted Solution

by:
petiex earned 2000 total points
ID: 34232564
Also, you didn't mention what component you are displaying this in, but if it supports a condenseWhite property, you should set that to true. http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.html#condenseWhite
0
 

Author Comment

by:kageboy2003
ID: 34232737
I am using CKeditor in a backend application and that was why I was having trouble trying to get the XML written to one line.  However, I had tried the condenseWhite before, but was trying to apply it to the imported XML (like the ignoreWhitespace) and it was not displaying anything.  After seeing the sample on the link you gave me, I applied it to the individual textbox before assigning the text and IT WORKED!  

Thanks again.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question