Solved

Flash/XML <br> line spacing issue

Posted on 2010-11-29
3
446 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

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…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
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.

860 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