Solved

Flash/XML <br> line spacing issue

Posted on 2010-11-29
3
447 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
  • 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 500 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

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,…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

680 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