Solved

Flash/XML <br> line spacing issue

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now