NAVIGATION:

 

SUPPORTERS:

FlashComponents
  Flash Templates
  Flash Gallery
  Flash Slideshow
  Flash Menu
  Flash Design
  Flash Video
  User Interface

 

FOLLOW:

RSS it down! Twitter it up! Facebook it like a fiend!

 

 

 

 


Introduction to XML in Flash
       by senocular

Double-spacing Occurs With Text Nodes And/Or CDATA
When text is brought into Flash and displayed in a text field, whitespace from that text is retained allowing you to mainttain tabbing and line breaks. Depending on your operating system, line breaks may consist of one of the following:

Character Represents

OS

\r carriage return Mac OS <= 9
\n newline Unix (OSX)
\r\n (both) Windows

Flash understands both \r and \n as line breaks. The problem comes with Windows line breaks which actually uses both \r and \n to represent one single line break. When this is brought into Flash, that single line break is interpreted as two.

To solve this problem, you can either replace all instances of either \r or \n from within Flash before the text is added to a text field or you can simply remove it beforehand (prefered) using a more advanced text editor - something other than notepad - which will let you distinguish between characters used for line breaks.


 

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components Flash effects. Art without coding.
Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Citrus Engine: Flash platformer and sidescrolling game engine
Learn how to advertise on kirupa.com

cdn
content delivery network (cdn)