[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Flash/XML <br> line spacing issue

Posted on 2010-11-29
3
Medium Priority
?
453 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

650 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